diff options
author | Andrew Gierth <rhodiumtoad@postgresql.org> | 2019-03-19 01:16:50 +0000 |
---|---|---|
committer | Andrew Gierth <rhodiumtoad@postgresql.org> | 2019-03-19 01:16:50 +0000 |
commit | 01bde4fa4c24f4eea0a634d8fcad0b376efda6b1 (patch) | |
tree | 3891ad9efa650892c78e8d13f41c5eb151ff7a9e /src/include/commands | |
parent | f2004f19ed9c9228d3ea2b12379ccb4b9212641f (diff) | |
download | postgresql-01bde4fa4c24f4eea0a634d8fcad0b376efda6b1.tar.gz postgresql-01bde4fa4c24f4eea0a634d8fcad0b376efda6b1.zip |
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.
Diffstat (limited to 'src/include/commands')
-rw-r--r-- | src/include/commands/defrem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h index e592a914a48..3bc2e8eb16c 100644 --- a/src/include/commands/defrem.h +++ b/src/include/commands/defrem.h @@ -94,7 +94,7 @@ extern void UpdateStatisticsForTypeChange(Oid statsOid, /* commands/aggregatecmds.c */ extern ObjectAddress DefineAggregate(ParseState *pstate, List *name, List *args, bool oldstyle, - List *parameters); + List *parameters, bool replace); /* commands/opclasscmds.c */ extern ObjectAddress DefineOpClass(CreateOpClassStmt *stmt); |