From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: norbi@nix.hu
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types
Date: Sun, 23 Dec 2012 13:04:01 -0500
Message-ID: <27277.1356285841@sss.pgh.pa.us> (raw)
In-Reply-To: <20121223003748.GA11430@alap2.lan>
References: <E1TlfQa-0005LY-PL@wrigleys.postgresql.org>
<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Andres Freund <andres@2ndquadrant.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@2ndquadrant.com, norbi@nix.hu
Subject: Re: BUG #7763: "CREATE TABLE ... (LIKE ... INCLUDING INDEXES ...)" does not work with indexes on composite types
In-Reply-To: <27277.1356285841@sss.pgh.pa.us>
References: <E1TlfQa-0005LY-PL@wrigleys.postgresql.org> <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> <27277.1356285841@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox