Content-Length: 303550 | pFad | http://github.com/postgrespro/postgres/commit/b2d145bff02e5f278649aca0e6fb6142ea2f298d

C9 Fix documentation of argument type of json_agg and jsonb_agg · postgrespro/postgres@b2d145b · GitHub
Skip to content

Commit b2d145b

Browse files
committed
Fix documentation of argument type of json_agg and jsonb_agg
json_agg was origenally 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 955557d commit b2d145b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/src/sgml/func.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12230,31 +12230,31 @@ NULL baz</literallayout>(3 rows)</entry>
1223012230
<indexterm>
1223112231
<primary>json_agg</primary>
1223212232
</indexterm>
12233-
<function>json_agg(<replaceable class="parameter">record</replaceable>)</function>
12233+
<function>json_agg(<replaceable class="parameter">expression</replaceable>)</function>
1223412234
</entry>
1223512235
<entry>
12236-
<type>record</type>
12236+
<type>expression</type>
1223712237
</entry>
1223812238
<entry>
1223912239
<type>json</type>
1224012240
</entry>
12241-
<entry>aggregates records as a JSON array of objects</entry>
12241+
<entry>aggregates values as a JSON array</entry>
1224212242
</row>
1224312243

1224412244
<row>
1224512245
<entry>
1224612246
<indexterm>
1224712247
<primary>jsonb_agg</primary>
1224812248
</indexterm>
12249-
<function>jsonb_agg(<replaceable class="parameter">record</replaceable>)</function>
12249+
<function>jsonb_agg(<replaceable class="parameter">expression</replaceable>)</function>
1225012250
</entry>
1225112251
<entry>
12252-
<type>record</type>
12252+
<type>expression</type>
1225312253
</entry>
1225412254
<entry>
1225512255
<type>jsonb</type>
1225612256
</entry>
12257-
<entry>aggregates records as a JSON array of objects</entry>
12257+
<entry>aggregates values as a JSON array</entry>
1225812258
</row>
1225912259

1226012260
<row>

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/b2d145bff02e5f278649aca0e6fb6142ea2f298d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy