Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2d145b

Browse filesBrowse 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 955557d commit b2d145b
Copy full SHA for b2d145b

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎doc/src/sgml/func.sgml

Copy file name to clipboardExpand all lines: doc/src/sgml/func.sgml
+6-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.