postgres.git / summary / log / commit / refs
commit cc82141d9a4d2d83aea6691fad2d8fbbd1a277c2
Author: Andrew Dunstan <andrew@dunslane.net>
Date: Mon Dec 22 19:20:19 2014 +0000
First released in: 9.5.0, 9.3.6, 9.4.1
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.
doc/src/sgml/func.sgml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index b7e65a58ea5..3ec030288f4 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -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>
[parent: acbcb3262984]