![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
SUMMARY: if you attempt to UPDATE or DELETE FROM a parent table in an inheritance relationship using a wCTE, you get the following error message: ERROR: could not find plan for CTE |
#3
| |||
| |||
|
|
Josh Berkus <josh (AT) agliodbs (DOT) com> writes: SUMMARY: if you attempt to UPDATE or DELETE FROM a parent table in an inheritance relationship using a wCTE, you get the following error message: ERROR: could not find plan for CTE Fixed, thanks for the report. |
#4
| |||
| |||
|
|
On 1/28/12 5:27 PM, Tom Lane wrote: Josh Berkus <josh (AT) agliodbs (DOT) com> writes: SUMMARY: if you attempt to UPDATE or DELETE FROM a parent table in an inheritance relationship using a wCTE, you get the following error message: * * *ERROR: *could not find plan for CTE Fixed, thanks for the report. Should we add a regression test for this? |
#5
| |||
| |||
|
|
This is the kind of thing that could go unnoticed for a long time, simply because it is not highlighted any more prominently than a routine error message like an integrity constraint violation. I continue to maintain that we should have a new severity level for this sort of thing. |
#6
| |||
| |||
|
|
This is the kind of thing that could go unnoticed for a long time, simply because it is not highlighted any more prominently than a routine error message like an integrity constraint violation. I continue to maintain that we should have a new severity level for this sort of thing. Huh? *I don't follow you at all Peter. |
#7
| |||
| |||
|
|
On 29 January 2012 20:39, Josh Berkus <josh (AT) agliodbs (DOT) com> wrote: Huh? *I don't follow you at all Peter. I mean that we should change code like this: elog(ERROR, "could not find plan for CTE \"%s\"", rte->ctename) to this: elog(INTERNAL_ERROR, "could not find plan for CTE \"%s\"", rte->ctename) |
#8
| |||
| |||
|
|
On 1/28/12 5:27 PM, Tom Lane wrote: Josh Berkus <josh (AT) agliodbs (DOT) com> writes: SUMMARY: if you attempt to UPDATE or DELETE FROM a parent table in an inheritance relationship using a wCTE, you get the following error message: ERROR: could not find plan for CTE Fixed, thanks for the report. Should we add a regression test for this? |
#9
| |||
| |||
|
|
Seems like a lot of make-work. *The fact that it's got an XX000 SQLSTATE is already sufficient confirmation that the problem is an internal one, if the DBA isn't sure about that already. |
|
There is no sort of systematic labeling of error messages in the log to enable the DBA to figure out that the first error message is likely nothing more serious than an integrity constraint doing its bit to preserve data integrity, while the second is likely a sign of impending disaster. |
#10
| |||
| |||
|
|
Is it really that much of a problem to create a new severity level for this stuff? |
|
Excerpts from Robert Haas's message of jue nov 24 13:14:38 -0300 2011: What I think we want to distinguish between is things that are PEBKAC/GIGO, and everything else. In other words, if a particular error message can be caused by typing something stupid, unexpected, erroneous, or whatever into psql, it's just an error. But if no input, however misguided, should ever cause that symptom, then it's, I don't know what the terminology should be, say, a "severe error". +1 |
![]() |
| Thread Tools | |
| Display Modes | |
| |