Rename bytea_agg to string_agg and add delimiter argument
Peter Eisentraut <peter_e@gmx.net>
Rename bytea_agg to string_agg and add delimiter argument Per mailing list discussion, we would like to keep the bytea functions parallel to the text functions, so rename bytea_agg to string_agg, which already exists for text. Also, to satisfy the rule that we don't want aggregate functions of the same name with a different number of arguments, add a delimiter argument, just like string_agg for text already has.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +7 −20 |
| src/backend/utils/adt/varlena.c | modified | +10 −3 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_aggregate.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +3 −3 |
| src/include/utils/builtins.h | modified | +2 −2 |
| src/test/regress/expected/aggregates.out | modified | +22 −10 |
| src/test/regress/sql/aggregates.sql | modified | +6 −4 |