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/backend/nodes/equalfuncs.c | |
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/backend/nodes/equalfuncs.c')
-rw-r--r-- | src/backend/nodes/equalfuncs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 3cab90e9f88..813606ce0e7 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -1265,6 +1265,7 @@ _equalDefineStmt(const DefineStmt *a, const DefineStmt *b) COMPARE_NODE_FIELD(args); COMPARE_NODE_FIELD(definition); COMPARE_SCALAR_FIELD(if_not_exists); + COMPARE_SCALAR_FIELD(replace); return true; } |