postgresql/src/test/regress
Tom Lane a20993608a Fix case of window function + aggregate + GROUP BY expression.
In commit 1bc16a9460 I added a minor
optimization to drop the component variables of a GROUP BY expression from
the target list computed at the aggregation level of a query, if those Vars
weren't referenced elsewhere in the tlist.  However, I overlooked that the
window-function planning code would deconstruct such expressions and thus
need to have access to their component variables.  Fix it to not do that.

While at it, I removed the distinction between volatile and nonvolatile
window partition/order expressions: the code now computes all of them
at the aggregation level.  This saves a relatively expensive check for
volatility, and it's unclear that the resulting plan isn't better anyway.

Per bug #7535 from Louis-David Mitterrand.  Back-patch to 9.2.
2012-09-13 11:32:25 -04:00
..
data Fix GIN to support null keys, empty and null items, and full index scans. 2011-01-07 19:16:24 -05:00
expected Fix case of window function + aggregate + GROUP BY expression. 2012-09-13 11:32:25 -04:00
input Change syntax of new CHECK NO INHERIT constraints 2012-07-24 16:01:32 -04:00
output Add SP-GiST support for range types. 2012-08-16 14:30:45 +03:00
sql Fix case of window function + aggregate + GROUP BY expression. 2012-09-13 11:32:25 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
GNUmakefile pg_regress: Use target-specific variable instead of overriding make rule 2012-02-07 22:42:19 +02:00
Makefile
parallel_schedule Syntax support and documentation for event triggers. 2012-07-18 10:16:16 -04:00
pg_regress_main.c pg_regress: Replace exit_nicely() with exit() plus atexit() hook 2012-01-02 22:09:25 +02:00
pg_regress.c Use --nosync during make check's initdb call. 2012-07-21 19:56:22 -04:00
pg_regress.h pg_regress: Replace exit_nicely() with exit() plus atexit() hook 2012-01-02 22:09:25 +02:00
regress.c Redesign the plancache mechanism for more flexibility and efficiency. 2011-09-16 00:43:52 -04:00
regressplans.sh
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Syntax support and documentation for event triggers. 2012-07-18 10:16:16 -04:00
standby_schedule