1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Fix documentation of argument type of json_agg and jsonb_agg

json_agg was originally designed to aggregate records. However, it soon
became clear that it is useful for aggregating all kinds of values and
that's what we have on 9.3 and 9.4, and in head for it and jsonb_agg.
The documentation suggested otherwise, so this fixes it.
This commit is contained in:
Andrew Dunstan
2014-12-22 14:20:19 -05:00
parent acbcb32629
commit cc82141d9a

View File

@ -11572,15 +11572,15 @@ SELECT NULLIF(value, '(none)') ...
<indexterm>
<primary>json_agg</primary>
</indexterm>
<function>json_agg(<replaceable class="parameter">record</replaceable>)</function>
<function>json_agg(<replaceable class="parameter">expression</replaceable>)</function>
</entry>
<entry>
<type>record</type>
<type>expression</type>
</entry>
<entry>
<type>json</type>
</entry>
<entry>aggregates records as a JSON array of objects</entry>
<entry>aggregates values as a JSON array</entry>
</row>
<row>