diff options
| author | Andrew Dunstan <andrew@dunslane.net> | 2014-12-22 14:20:19 -0500 |
|---|---|---|
| committer | Andrew Dunstan <andrew@dunslane.net> | 2014-12-22 14:20:19 -0500 |
| commit | 302bed04b2e2c6074cccc3b63aa1962c5a4461dd (patch) | |
| tree | 439e6d6d8922063b292620dbecaae4fe6982407f /doc | |
| parent | 7ac0aff2b83e88edf5e7dcd4c4b425319d9537d6 (diff) | |
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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/src/sgml/func.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1d597d4d1b1..41b5c1bd1a3 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -12160,15 +12160,15 @@ NULL baz</literallayout>(3 rows)</entry> <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> |
