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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add min and max aggregates for composite types (records).
Date: 2024-07-11 15:51:01
Message-ID: E1sRw4T-001GaI-4S@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-07-11 17:21:20 pgsql: Improve logical replication connection-failure messages.
Previous Message Tom Lane 2024-07-11 14:42:15 Re: pgsql: Avoid crashing when a JIT-inlined backend function throws an err