postgresql/src/test
Tom Lane 77ba232564 Fix nested PlaceHolderVar expressions that appear only in targetlists.
A PlaceHolderVar's expression might contain another, lower-level
PlaceHolderVar.  If the outer PlaceHolderVar is used, the inner one
certainly will be also, and so we have to make sure that both of them get
into the placeholder_list with correct ph_may_need values during the
initial pre-scan of the query (before deconstruct_jointree starts).
We did this correctly for PlaceHolderVars appearing in the query quals,
but overlooked the issue for those appearing in the top-level targetlist;
with the result that nested placeholders referenced only in the targetlist
did not work correctly, as illustrated in bug #6154.

While at it, add some error checking to find_placeholder_info to ensure
that we don't try to create new placeholders after it's too late to do so;
they have to all be created before deconstruct_jointree starts.

Back-patch to 8.4 where the PlaceHolderVar mechanism was introduced.
2011-08-09 00:50:07 -04:00
..
examples Capitalization fixes 2011-06-19 00:37:30 +03:00
isolation Make isolationtester more robust on locked commands 2011-07-19 14:22:42 -04:00
locale Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
mb Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
performance Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
regress Fix nested PlaceHolderVar expressions that appear only in targetlists. 2011-08-09 00:50:07 -04:00
thread Check the return code of pthread_create(). Otherwise we go into an infinite 2011-05-27 12:55:02 +03:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00