Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id BBC5AE60237 for ; Sun, 29 Jan 2012 16:07:28 -0400 (AST) Received: from smtp.01.com ([199.36.142.181]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrb26-0004go-8T for pgsql-bugs@postgresql.org; Sun, 29 Jan 2012 20:07:28 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 971B83F4EE6 for ; Sun, 29 Jan 2012 14:07:12 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W3UF8ag9ogi7 for ; Sun, 29 Jan 2012 14:07:12 -0600 (CST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 751313F4CB6 for ; Sun, 29 Jan 2012 14:07:12 -0600 (CST) Received: from Sidney-Stratton.local (70-36-197-35.dsl.dynamic.sonic.net [70.36.197.35]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 249883F4104; Sun, 29 Jan 2012 14:07:12 -0600 (CST) Message-ID: <4F25A6DF.8080506@agliodbs.com> Date: Sun, 29 Jan 2012 12:06:55 -0800 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.24) Gecko/20111103 Lightning/1.0b2 Thunderbird/3.1.16 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: wCTE cannot be used to update parent inheritance table References: <4F2094A6.5090505@agliodbs.com> <10969.1327800430@sss.pgh.pa.us> In-Reply-To: <10969.1327800430@sss.pgh.pa.us> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/233 X-Sequence-Number: 32300 On 1/28/12 5:27 PM, Tom Lane wrote: > Josh Berkus 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? -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com