Add string_agg aggregate functions. The one argument version concatenates
authorItagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Mon, 1 Feb 2010 03:14:45 +0000 (03:14 +0000)
committerItagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Mon, 1 Feb 2010 03:14:45 +0000 (03:14 +0000)
commitd1b33c1077442fa4c40f67e63d00fd3677283660
tree725b64afe0b311f0ee39397b4db6370885c3b61f
parentdaaf91ee2363a2c6ec8d88f679e398d8a3c07fc7
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.
doc/src/sgml/func.sgml
src/backend/utils/adt/varlena.c
src/include/catalog/catversion.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_proc.h
src/include/utils/builtins.h
src/test/regress/expected/aggregates.out
src/test/regress/sql/aggregates.sql