Re: [HACKERS] Some progress on INSERT/SELECT/GROUP BY bugs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Some progress on INSERT/SELECT/GROUP BY bugs
Date
Msg-id 23104.937692453@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Some progress on INSERT/SELECT/GROUP BY bugs  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <maillist@candle.pha.pa.us> writes:
> Tom, is this fixed?

>> I believe I've identified the main cause of the peculiar behavior we
>> are seeing with INSERT ... SELECT ... GROUP/ORDER BY: it's a subtle
>> parser bug.

>> I believe the most reasonable fix for this is to postpone relabeling
>> of the targetlist entries with destination column names until after
>> analysis of the SELECT's subsidiary clauses is complete.

Yes, for 6.6.  There are some other INSERT ... SELECT cases that can't
be fixed until we have separate targetlists for the INSERT and the
source SELECT --- but I did take care of this particular issue.  The
column relabeling etc doesn't happen until after we've finished with
analyzing the SELECT subclause.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: HISTORY for 6.5.2
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] v6.5.2 vacuum...?