pgsql: Add min and max aggregates for bytea type. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Add min and max aggregates for bytea type.
Date
Msg-id E1syENf-002jgh-Dh@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: bufmgr/smgr: Don't cross segment boundaries in StartReadBuffers(
Next
From: Tom Lane
Date:
Subject: pgsql: Silence assorted annoying test output.