aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-04-13 21:36:59 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-04-13 21:36:59 +0300
commitc0cc526e8b1e821dfced692a68e4c8978c2bdbc1 (patch)
treeefc28ea316bc5aedcffe57963c049a8bbd540d13 /doc/src
parent64e1309c76aca35e32e62e69fc11e96aadfb2615 (diff)
downloadpostgresql-c0cc526e8b1e821dfced692a68e4c8978c2bdbc1.tar.gz
postgresql-c0cc526e8b1e821dfced692a68e4c8978c2bdbc1.zip
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.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml27
1 files changed, 7 insertions, 20 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 94ef2f08044..29d907ddd17 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -3160,6 +3160,11 @@
right within each byte; for example bit 0 is the least significant bit of
the first byte, and bit 15 is the most significant bit of the second byte.
</para>
+
+ <para>
+ See also the aggregate function <function>string_agg</function> in
+ <xref linkend="functions-aggregate">.
+ </para>
</sect1>
@@ -10965,24 +10970,6 @@ SELECT NULLIF(value, '(none)') ...
<row>
<entry>
<indexterm>
- <primary>bytea_agg</primary>
- </indexterm>
- <function>
- bytea_agg(<replaceable class="parameter">expression</replaceable>)
- </function>
- </entry>
- <entry>
- <type>bytea</type>
- </entry>
- <entry>
- <type>bytea</type>
- </entry>
- <entry>input values concatenated into a bytea</entry>
- </row>
-
- <row>
- <entry>
- <indexterm>
<primary>count</primary>
</indexterm>
<function>count(*)</function>
@@ -11061,10 +11048,10 @@ SELECT NULLIF(value, '(none)') ...
</function>
</entry>
<entry>
- <type>text</type>, <type>text</type>
+ (<type>text</type>, <type>text</type>) or (<type>bytea</type>, <type>bytea</type>)
</entry>
<entry>
- <type>text</type>
+ same as argument types
</entry>
<entry>input values concatenated into a string, separated by delimiter</entry>
</row>