Add min and max aggregates for bytea type.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +2 −2 |
| src/backend/utils/adt/varlena.c | modified | +38 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_aggregate.dat | modified | +6 −0 |
| src/include/catalog/pg_proc.dat | modified | +13 −0 |
| src/test/regress/expected/aggregates.out | modified | +27 −1 |
| src/test/regress/expected/opr_sanity.out | modified | +2 −0 |
| src/test/regress/sql/aggregates.sql | modified | +10 −1 |
Documentation touched
Discussion
- [PATCH] Add min/max aggregate functions to BYTEA 17 messages · 2024-07-03 → 2024-10-08