pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <rhodiumtoad@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Implement OR REPLACE option for CREATE AGGREGATE.
Date: Tue, 19 Mar 2019 01:38:22 +0000
Message-ID: <E1h63hu-0004KA-M7@gemulon.postgresql.org> (raw)

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/01bde4fa4c24f4eea0a634d8fcad0b376efda6b1

Modified Files
--------------
doc/src/sgml/ref/create_aggregate.sgml         | 27 ++++++----
src/backend/catalog/pg_aggregate.c             | 57 +++++++++++++++++++--
src/backend/catalog/pg_proc.c                  |  6 ++-
src/backend/commands/aggregatecmds.c           |  8 ++-
src/backend/nodes/copyfuncs.c                  |  1 +
src/backend/nodes/equalfuncs.c                 |  1 +
src/backend/parser/gram.y                      | 16 +++---
src/backend/tcop/utility.c                     |  3 +-
src/include/catalog/pg_aggregate.h             |  1 +
src/include/commands/defrem.h                  |  2 +-
src/include/nodes/parsenodes.h                 |  1 +
src/test/regress/expected/create_aggregate.out | 71 ++++++++++++++++++++++++++
src/test/regress/sql/create_aggregate.sql      | 65 +++++++++++++++++++++++
13 files changed, 235 insertions(+), 24 deletions(-)



Message-ID: <E1h63hu-0004KA-M7@gemulon.postgresql.org>
Permalink:  ../E1h63hu-0004KA-M7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h63hu-0004KA-M7@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhodiumtoad@postgresql.org
  Subject: Re: pgsql: Implement OR REPLACE option for CREATE AGGREGATE.
  In-Reply-To: <E1h63hu-0004KA-M7@gemulon.postgresql.org>
  References: <E1h63hu-0004KA-M7@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox