pgsql: Add min and max aggregates for bytea type.

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 bytea type.
Date: 2024-10-08 17:52:19
Message-ID: E1syENf-002jgh-Dh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add min and max aggregates for bytea type.

Similar to a0f1fce80, although we chose to duplicate logic
rather than invoke byteacmp, primarily to avoid repeat detoasting.

Marat Buharov, Aleksander Alekseev

Discussion: https://postgr.es/m/CAPCEVGXiASjodos4P8pgyV7ixfVn-ZgG9YyiRZRbVqbGmfuDyg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2d24fd942c7010247c5b7b54b416acf7f4592a4e

Modified Files
--------------
doc/src/sgml/func.sgml | 4 ++--
src/backend/utils/adt/varlena.c | 38 ++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_aggregate.dat | 6 +++++
src/include/catalog/pg_proc.dat | 13 +++++++++++
src/test/regress/expected/aggregates.out | 28 ++++++++++++++++++++++-
src/test/regress/expected/opr_sanity.out | 2 ++
src/test/regress/sql/aggregates.sql | 11 ++++++++-
8 files changed, 99 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-10-08 18:13:07 pgsql: Silence assorted annoying test output.
Previous Message Andres Freund 2024-10-08 16:57:17 pgsql: bufmgr/smgr: Don't cross segment boundaries in StartReadBuffers(