Skip to content

Commit 302bed0

Browse files
committed
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.
1 parent 7ac0aff commit 302bed0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/func.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12160,15 +12160,15 @@ NULL baz</literallayout>(3 rows)</entry>
1216012160
<indexterm>
1216112161
<primary>json_agg</primary>
1216212162
</indexterm>
12163-
<function>json_agg(<replaceable class="parameter">record</replaceable>)</function>
12163+
<function>json_agg(<replaceable class="parameter">expression</replaceable>)</function>
1216412164
</entry>
1216512165
<entry>
12166-
<type>record</type>
12166+
<type>expression</type>
1216712167
</entry>
1216812168
<entry>
1216912169
<type>json</type>
1217012170
</entry>
12171-
<entry>aggregates records as a JSON array of objects</entry>
12171+
<entry>aggregates values as a JSON array</entry>
1217212172
</row>
1217312173

1217412174
<row>

0 commit comments

Comments
 (0)