From 9ea9918e37689fbc9ed43532b8828652b5ea90cd Mon Sep 17 00:00:00 2001 From: Itagaki Takahiro Date: Mon, 1 Feb 2010 03:14:45 +0000 Subject: 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 | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index f777f9f1650..bd1bf352206 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -1789,6 +1789,10 @@ + + See also about the aggregate + function string_agg. + Built-in Conversions @@ -9836,6 +9840,25 @@ SELECT NULLIF(value, '(none)') ... + + + + string_agg + + + string_agg(expression + [, delimiter ] ) + + + + text + + + text + + input values concatenated into a string, optionally with delimiters + + sum(expression) -- cgit v1.2.3