postgresql/src/bin/pg_dump
Tom Lane 0d3f4406df Allow aggregate functions to be VARIADIC.
There's no inherent reason why an aggregate function can't be variadic
(even VARIADIC ANY) if its transition function can handle the case.
Indeed, this patch to add the feature touches none of the planner or
executor, and little of the parser; the main missing stuff was DDL and
pg_dump support.

It is true that variadic aggregates can create the same sort of ambiguity
about parameters versus ORDER BY keys that was complained of when we
(briefly) had both one- and two-argument forms of string_agg().  However,
the policy formed in response to that discussion only said that we'd not
create any built-in aggregates with varying numbers of arguments, not that
we shouldn't allow users to do it.  So the logical extension of that is
we can allow users to make variadic aggregates as long as we're wary about
shipping any such in core.

In passing, this patch allows aggregate function arguments to be named, to
the extent of remembering the names in pg_proc and dumping them in pg_dump.
You can't yet call an aggregate using named-parameter notation.  That seems
like a likely future extension, but it'll take some work, and it's not what
this patch is really about.  Likewise, there's still some work needed to
make window functions handle VARIADIC fully, but I left that for another
day.

initdb forced because of new aggvariadic field in Aggref parse nodes.
2013-09-03 17:08:46 -04:00
..
po Translation updates 2013-09-02 02:43:18 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
common.c Update messages, comments and documentation for materialized views. 2013-07-05 15:37:51 -04:00
compress_io.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
compress_io.h Update copyrights for 2013 2013-01-01 17:15:01 -05:00
dumputils.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
dumputils.h Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
keywords.c Update copyrights for 2013 2013-01-01 17:15:01 -05:00
Makefile Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
nls.mk Translation updates 2013-09-02 02:43:18 -04:00
parallel.c During parallel pg_dump, free commands from master 2013-07-14 14:35:26 -04:00
parallel.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pg_backup.h Accept multiple -I, -P, -T and -n options in pg_restore. 2013-08-28 09:43:34 +03:00
pg_backup_archiver.c Accept multiple -I, -P, -T and -n options in pg_restore. 2013-08-28 09:43:34 +03:00
pg_backup_archiver.h pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
pg_backup_custom.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_db.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_db.h pg_dump: Further reduce reliance on global variables. 2012-02-07 10:07:02 -05:00
pg_backup_directory.c pg_dump: Formatting cleanup of new messages 2013-07-11 21:48:09 -04:00
pg_backup_null.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_tar.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_backup_utils.h Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_dump.c Allow aggregate functions to be VARIADIC. 2013-09-03 17:08:46 -04:00
pg_dump.h WITH CHECK OPTION support for auto-updatable VIEWs 2013-07-18 17:10:16 -04:00
pg_dump_sort.c Move some pg_dump function around. 2013-03-27 18:10:40 +02:00
pg_dumpall.c pg_dump/pg_dumpall: remove unnecessary SQL trailing semicolons 2013-07-31 11:37:17 -04:00
pg_restore.c Accept multiple -I, -P, -T and -n options in pg_restore. 2013-08-28 09:43:34 +03:00