Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4EE69E60237 for ; Sun, 29 Jan 2012 16:52:34 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrbjj-0005OF-W1 for pgsql-bugs@postgresql.org; Sun, 29 Jan 2012 20:52:34 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0TKqCZ3011928; Sun, 29 Jan 2012 15:52:12 -0500 (EST) To: Peter Geoghegan cc: Josh Berkus , pgsql-bugs@postgresql.org Subject: Re: wCTE cannot be used to update parent inheritance table In-reply-to: References: <4F2094A6.5090505@agliodbs.com> <10969.1327800430@sss.pgh.pa.us> <4F25A6DF.8080506@agliodbs.com> <4F25AE7C.6030907@agliodbs.com> Comments: In-reply-to Peter Geoghegan message dated "Sun, 29 Jan 2012 20:49:01 +0000" Date: Sun, 29 Jan 2012 15:52:12 -0500 Message-ID: <11927.1327870332@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/237 X-Sequence-Number: 32304 Peter Geoghegan writes: > On 29 January 2012 20:39, Josh Berkus 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) 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. regards, tom lane