postgresql/src/test/regress
Tom Lane 20a3ddbbf9 Fix the handling of sub-SELECTs appearing in the arguments of an outer-level
aggregate function.  By definition, such a sub-SELECT cannot reference any
variables of query levels between itself and the aggregate's semantic level
(else the aggregate would've been assigned to that lower level instead).
So the correct, most efficient implementation is to treat the sub-SELECT as
being a sub-select of that outer query level, not the level the aggregate
syntactically appears in.  Not doing so also confuses the heck out of our
parameter-passing logic, as illustrated in bug report from Daniel Grace.

Fortunately, we were already copying the whole Aggref expression up to the
outer query level, so all that's needed is to delay SS_process_sublinks
processing of the sub-SELECT until control returns to the outer level.

This has been broken since we introduced spec-compliant treatment of
outer aggregates in 7.4; so patch all the way back.
2009-04-25 16:44:56 +00:00
..
data Avoid regression test cases that fail in locales that sort "v" and "w" 2009-01-19 14:24:13 +00:00
expected Fix the handling of sub-SELECTs appearing in the arguments of an outer-level 2009-04-25 16:44:56 +00:00
input Fix a couple of snapshot management bugs in the new ResourceOwner world: 2008-12-04 14:51:02 +00:00
output Fix a couple of snapshot management bugs in the new ResourceOwner world: 2008-12-04 14:51:02 +00:00
sql Fix the handling of sub-SELECTs appearing in the arguments of an outer-level 2009-04-25 16:44:56 +00:00
GNUmakefile Update copyright for 2009. 2009-01-01 17:24:05 +00:00
Makefile Remove remains of old depend target. 2007-01-20 17:16:17 +00:00
parallel_schedule Revert updatable views 2009-01-27 12:40:15 +00:00
pg_regress_main.c Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_regress.c Change the default value of max_prepared_transactions to zero, and add 2009-04-23 00:23:46 +00:00
pg_regress.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
regress.c Fix executor/spi.h to follow our usual conventions for include files, ie, 2009-01-07 13:44:37 +00:00
regressplans.sh Tweak regressplans.sh to use any already-set PGOPTIONS. 2000-12-18 02:45:47 +00:00
resultmap Rewrite ECPG regression test driver in C, by splitting the standard 2007-06-12 11:07:34 +00:00
serial_schedule Revert updatable views 2009-01-27 12:40:15 +00:00