postgresql/src/test
Tom Lane 4886dc92e0 Fix set_subquery_pathlist() to copy the RTE's subquery before it gets mangled
by the planning process.  This prevents the "failed to locate grouping columns"
error recently reported by Dickson Guedes.  That happens because planning
replaces SubLinks by SubPlans in the subquery's targetlist, and exprTypmod()
is smarter about the former than the latter, causing the apparent type of
the subquery's output columns to change.  This seems to be a deficiency we
should fix in exprTypmod(), but that will be a much more invasive patch
with possible side-effects elsewhere, so I'll do that only in HEAD.

Back-patch to 8.3.  Arguably the lack of a copying step is broken/dangerous
all the way back, but in the absence of known problems I'll refrain from
making the older branches pay the extra cost.  (The reason this particular
symptom didn't appear before is that exprTypmod() wasn't smart about SubLinks
either, until 8.3.)
2009-03-10 20:58:26 +00:00
..
bench Update copyright for 2009. 2009-01-01 17:24:05 +00:00
examples Update copyright for 2009. 2009-01-01 17:24:05 +00:00
locale Add $PostgreSQL$ markers to a lot of files that were missing them. 2008-05-17 01:28:26 +00:00
mb More README src cleanups. 2008-03-21 13:23:29 +00:00
performance Add CVS tag lines to files that were lacking them. 2006-03-11 04:38:42 +00:00
regress Fix set_subquery_pathlist() to copy the RTE's subquery before it gets mangled 2009-03-10 20:58:26 +00:00
thread Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00