pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add min and max aggregates for composite types (records).
Date: Thu, 11 Jul 2024 15:51:01 +0000
Message-ID: <E1sRw4T-001GaI-4S@gemulon.postgresql.org> (raw)

Add min and max aggregates for composite types (records).

Like min/max for arrays, these are just thin wrappers around
the existing btree comparison function for records.

Aleksander Alekseev

Discussion: https://postgr.es/m/CAO=iB8L4WYSNxCJ8GURRjQsrXEQ2-zn3FiCsh2LMqvWq2WcONg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a0f1fce80c0373c16b22a1bdc9b0b61958fc9b6a

Modified Files
--------------
doc/src/sgml/func.sgml                   |  4 ++--
src/backend/utils/adt/rowtypes.c         | 18 ++++++++++++++++++
src/include/catalog/catversion.h         |  2 +-
src/include/catalog/pg_aggregate.dat     |  6 ++++++
src/include/catalog/pg_proc.dat          | 14 +++++++++++++-
src/test/regress/expected/aggregates.out | 25 +++++++++++++++++++++++++
src/test/regress/sql/aggregates.sql      |  6 ++++++
7 files changed, 71 insertions(+), 4 deletions(-)



Message-ID: <E1sRw4T-001GaI-4S@gemulon.postgresql.org>
Permalink:  ../E1sRw4T-001GaI-4S@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sRw4T-001GaI-4S@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add min and max aggregates for composite types (records).
  In-Reply-To: <E1sRw4T-001GaI-4S@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