Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TmpuK-00076A-2q for pgsql-bugs@arkaria.postgresql.org; Sun, 23 Dec 2012 18:04:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TmpuI-0002uF-Us for pgsql-bugs@arkaria.postgresql.org; Sun, 23 Dec 2012 18:04:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TmpuI-0002td-49 for pgsql-bugs@postgresql.org; Sun, 23 Dec 2012 18:04:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TmpuF-00017u-Up for pgsql-bugs@postgresql.org; Sun, 23 Dec 2012 18:04:13 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qBNI41FF027278; Sun, 23 Dec 2012 13:04:01 -0500 (EST) From: Tom Lane To: Andres Freund cc: norbi@nix.hu, pgsql-bugs@postgresql.org Subject: Re: BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types In-reply-to: <20121223003748.GA11430@alap2.lan> References: <20121220201703.GA29416@awork2.anarazel.de> <20121220215053.GB29416@awork2.anarazel.de> <20121222130618.GB15790@awork2.anarazel.de> <3838.1356210707@sss.pgh.pa.us> <20121223003748.GA11430@alap2.lan> Comments: In-reply-to Andres Freund message dated "Sun, 23 Dec 2012 01:37:49 +0100" Date: Sun, 23 Dec 2012 13:04:01 -0500 Message-ID: <27277.1356285841@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2012-12-22 16:11:47 -0500, Tom Lane wrote: >> BTW, it sure looks to me like transformXmlExpr will get an Assert >> failure on an already-transformed expression ... > Yep. I am pretty sure there are others :( Eyeball inspection doesn't find any: either the output node type is different, or the function has a guard against repeat analysis, or it actually is idempotent anyway. I plan to commit a fix that just adds guards to transformRowExpr and transformXmlExpr. If you feel like expending more work in this area, I'd suggest looking into what it would take to remove the requirement of idempotence. We know at least three places that would need changes --- what others are there? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs