postgresql/src/test/regress
Tom Lane bb45c64041 Support default arguments and named-argument notation for window functions.
These things didn't work because the planner omitted to do the necessary
preprocessing of a WindowFunc's argument list.  Add the few dozen lines
of code needed to handle that.

Although this sounds like a feature addition, it's really a bug fix because
the default-argument case was likely to crash previously, due to lack of
checking of the number of supplied arguments in the built-in window
functions.  It's not a security issue because there's no way for a
non-superuser to create a window function definition with defaults that
refers to a built-in C function, but nonetheless people might be annoyed
that it crashes rather than producing a useful error message.  So
back-patch as far as the patch applies easily, which turns out to be 9.2.
I'll put a band-aid in earlier versions as a separate patch.

(Note that these features still don't work for aggregates, and fixing that
case will be harder since we represent aggregate arg lists as target lists
not bare expression lists.  There's no crash risk though because CREATE
AGGREGATE doesn't accept defaults, and we reject named-argument notation
when parsing an aggregate call.)
2013-11-06 13:33:09 -05: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 Support default arguments and named-argument notation for window functions. 2013-11-06 13:33:09 -05:00
input Add large object functions catering to SQL callers. 2013-10-27 22:56:54 -04:00
output Add large object functions catering to SQL callers. 2013-10-27 22:56:54 -04:00
sql Support default arguments and named-argument notation for window functions. 2013-11-06 13:33:09 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
GNUmakefile Fix regression test make dependencies 2013-07-01 21:10:36 -04:00
Makefile
parallel_schedule Revive line type 2013-10-09 22:34:38 -04:00
pg_regress_main.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
pg_regress.c Replace pg_asprintf() with psprintf(). 2013-10-22 19:40:26 -04:00
pg_regress.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
regress.c Add support for multiple kinds of external toast datums. 2013-07-02 13:38:55 -04:00
regressplans.sh
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Revive line type 2013-10-09 22:34:38 -04:00
standby_schedule