Обсуждение: pgsql: Add min and max aggregates for composite types (records).

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)