Re: wCTE cannot be used to update parent inheritance table - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: wCTE cannot be used to update parent inheritance table
Date
Msg-id CAEYLb_WN+yAktLYSgvp3U8K4D2FYqNzEdpERUQJthkgX6hoAcw@mail.gmail.com
Whole thread Raw
In response to Re: wCTE cannot be used to update parent inheritance table  (Josh Berkus <josh@agliodbs.com>)
Responses Re: wCTE cannot be used to update parent inheritance table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 29 January 2012 20:39, Josh Berkus <josh@agliodbs.com> wrote:
>
>> 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? =A0I 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)

(which would necessitate creating a new severity level, INTERNAL_ERROR).

So that DBAs could find these kinds of problems systematically. This
is an error message that we expect no one to see.

--=20
Peter Geoghegan =A0 =A0 =A0 http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

pgsql-bugs by date:

Previous
From: Josh Berkus
Date:
Subject: Re: wCTE cannot be used to update parent inheritance table
Next
From: Tom Lane
Date:
Subject: Re: wCTE cannot be used to update parent inheritance table