Add string_agg aggregate functions. The one argument version concatenates
Itagaki Takahiro <itagaki.takahiro@gmail.com>
Add string_agg aggregate functions. The one argument version concatenates the input values into a string. The two argument version also does the same thing, but inserts delimiters between elements. Original patch by Pavel Stehule, reviewed by David E. Wheeler and me.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +24 −1 |
| src/backend/utils/adt/varlena.c | modified | +105 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_aggregate.h | modified | +5 −1 |
| src/include/catalog/pg_proc.h | modified | +11 −1 |
| src/include/utils/builtins.h | modified | +8 −1 |
| src/test/regress/expected/aggregates.out | modified | +31 −0 |
| src/test/regress/sql/aggregates.sql | modified | +7 −0 |