Skip to content

Commit cc82141

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 acbcb32 commit cc82141

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
@@ -11572,15 +11572,15 @@ SELECT NULLIF(value, '(none)') ...
1157211572
<indexterm>
1157311573
<primary>json_agg</primary>
1157411574
</indexterm>
11575-
<function>json_agg(<replaceable class="parameter">record</replaceable>)</function>
11575+
<function>json_agg(<replaceable class="parameter">expression</replaceable>)</function>
1157611576
</entry>
1157711577
<entry>
11578-
<type>record</type>
11578+
<type>expression</type>
1157911579
</entry>
1158011580
<entry>
1158111581
<type>json</type>
1158211582
</entry>
11583-
<entry>aggregates records as a JSON array of objects</entry>
11583+
<entry>aggregates values as a JSON array</entry>
1158411584
</row>
1158511585

1158611586
<row>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy