]> granicus.if.org Git - postgresql/commit
Implement OR REPLACE option for CREATE AGGREGATE.
authorAndrew Gierth <rhodiumtoad@postgresql.org>
Tue, 19 Mar 2019 01:16:50 +0000 (01:16 +0000)
committerAndrew Gierth <rhodiumtoad@postgresql.org>
Tue, 19 Mar 2019 01:16:50 +0000 (01:16 +0000)
commit01bde4fa4c24f4eea0a634d8fcad0b376efda6b1
tree3891ad9efa650892c78e8d13f41c5eb151ff7a9e
parentf2004f19ed9c9228d3ea2b12379ccb4b9212641f
Implement OR REPLACE option for CREATE AGGREGATE.

Aggregates have acquired a dozen or so optional attributes in recent
years for things like parallel query and moving-aggregate mode; the
lack of an OR REPLACE option to add or change these for an existing
agg makes extension upgrades gratuitously hard. Rectify.
13 files changed:
doc/src/sgml/ref/create_aggregate.sgml
src/backend/catalog/pg_aggregate.c
src/backend/catalog/pg_proc.c
src/backend/commands/aggregatecmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/include/catalog/pg_aggregate.h
src/include/commands/defrem.h
src/include/nodes/parsenodes.h
src/test/regress/expected/create_aggregate.out
src/test/regress/sql/create_aggregate.sql