pgsql: Add min and max aggregates for composite types (records). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Add min and max aggregates for composite types (records).
Date
Msg-id E1sRw4T-001GaI-4S@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Avoid crashing when a JIT-inlined backend function throws an err
Next
From: Tom Lane
Date:
Subject: pgsql: Improve logical replication connection-failure messages.