mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
@ -10962,24 +10967,6 @@ SELECT NULLIF(value, '(none)') ...
|
||||
<entry>true if at least one input value is true, otherwise false</entry>
|
||||
</row>
|
||||
|
||||
<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>
|
||||
@ -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>
|
||||
|
Reference in New Issue
Block a user