postgresql/src/backend
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
..
access Change the default value of max_prepared_transactions to zero, and add 2009-04-23 00:23:46 +00:00
bootstrap Start background writer during archive recovery. Background writer now performs 2009-02-18 15:58:41 +00:00
catalog Fix estimate_num_groups() to not fail on PlaceHolderVars, per report from 2009-04-19 19:46:33 +00:00
commands Don't use the result of strcmp as if it were a boolean. 2009-04-23 17:39:21 +00:00
executor XMLATTRIBUTES() should send the attribute values through 2009-04-08 21:51:38 +00:00
foreign Add the possibility to specify an explicit validator function for foreign-data 2009-02-24 10:06:36 +00:00
lib Update copyright for 2009. 2009-01-01 17:24:05 +00:00
libpq Suppress some 'variable may be used uninitialized' warnings from gcc 4.4. 2009-04-23 23:25:13 +00:00
main Update copyright for 2009. 2009-01-01 17:24:05 +00:00
nodes Fix planner to restore its previous level of intelligence about pushing 2009-04-16 20:42:16 +00:00
optimizer Fix the handling of sub-SELECTs appearing in the arguments of an outer-level 2009-04-25 16:44:56 +00:00
parser Fix some more 'variable may be used uninitialized' warnings from gcc 4.4. 2009-04-24 16:09:50 +00:00
po Translation updates for 8.4 beta 2009-04-09 19:38:53 +00:00
port Remove the long-obsolete homebrew dl*() functions for AIX, in favor of just 2009-04-21 21:15:50 +00:00
postmaster Remove a boatload of useless definitions of 'int optreset'. If we 2009-04-05 04:19:59 +00:00
regex Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
rewrite Get rid of the rather fuzzily defined FlattenedSubLink node type in favor of 2009-02-25 03:30:38 +00:00
snowball Update copyright for 2009. 2009-01-01 17:24:05 +00:00
storage A session that does not have any live snapshots does not have to be waited for 2009-04-04 17:40:36 +00:00
tcop Fix possible failures when a tuplestore switches from in-memory to on-disk 2009-03-27 18:30:21 +00:00
tsearch Some languages have symbols with zero display's width or/and vowels/signs which 2009-03-11 16:03:40 +00:00
utils Move gettext encoding names into encnames.c, so we only have one place to update. 2009-04-24 08:43:51 +00:00
Makefile Update copyright for 2009. 2009-01-01 17:24:05 +00:00
common.mk Code coverage testing with gcov. Documentation is in the regression test 2008-09-05 12:11:18 +00:00
nls.mk Translation updates for 8.4 beta 2009-04-09 19:38:53 +00:00