Add min and max aggregates for composite types (records).
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Jul 2024 15:50:50 +0000 (11:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 11 Jul 2024 15:50:50 +0000 (11:50 -0400)
commita0f1fce80c0373c16b22a1bdc9b0b61958fc9b6a
tree5bd3bf2c2ad8ba6238dc28f1d2bf4b707e3dccb8
parentbb19b70081e2248f242cd00227abff5b1e105eb6
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
doc/src/sgml/func.sgml
src/backend/utils/adt/rowtypes.c
src/include/catalog/catversion.h
src/include/catalog/pg_aggregate.dat
src/include/catalog/pg_proc.dat
src/test/regress/expected/aggregates.out
src/test/regress/sql/aggregates.sql