pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Implement ANY_VALUE aggregate
Date: Wed, 22 Feb 2023 08:42:26 +0000
Message-ID: <E1pUkhl-0006Se-Il@gemulon.postgresql.org> (raw)

Implement ANY_VALUE aggregate

SQL:2023 defines an ANY_VALUE aggregate whose purpose is to emit an
implementation-dependent (i.e. non-deterministic) value from the
aggregated rows.

Author: Vik Fearing <vik@postgresfriends.org>
Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/5cff866c-10a8-d2df-32cb-e9072e6b04a2@postgresfriends.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2ddab010c2777c6a965cea82dc1b809ddc33ecc1

Modified Files
--------------
doc/src/sgml/func.sgml                   | 14 ++++++++++++++
src/backend/catalog/sql_features.txt     |  1 +
src/backend/utils/adt/misc.c             |  9 +++++++++
src/include/catalog/catversion.h         |  2 +-
src/include/catalog/pg_aggregate.dat     |  4 ++++
src/include/catalog/pg_proc.dat          |  8 ++++++++
src/test/regress/expected/aggregates.out | 30 ++++++++++++++++++++++++++++++
src/test/regress/sql/aggregates.sql      |  7 +++++++
8 files changed, 74 insertions(+), 1 deletion(-)



Message-ID: <E1pUkhl-0006Se-Il@gemulon.postgresql.org>
Permalink:  ../E1pUkhl-0006Se-Il@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pUkhl-0006Se-Il@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: peter@eisentraut.org
  Subject: Re: pgsql: Implement ANY_VALUE aggregate
  In-Reply-To: <E1pUkhl-0006Se-Il@gemulon.postgresql.org>
  References: <E1pUkhl-0006Se-Il@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