From: Andrew Dunstan Date: Mon, 22 Dec 2014 19:12:06 +0000 (-0500) Subject: Fix documentation of argument type of json_agg and jsonb_agg X-Git-Tag: REL9_5_ALPHA1~1014 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2d145bff02e5f278649aca0e6fb6142ea2f298d;p=postgresql 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. --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 6f3094656c..c6c3bf8017 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -12230,15 +12230,15 @@ NULL baz(3 rows) json_agg - json_agg(record) + json_agg(expression) - record + expression json - aggregates records as a JSON array of objects + aggregates values as a JSON array @@ -12246,15 +12246,15 @@ NULL baz(3 rows) jsonb_agg - jsonb_agg(record) + jsonb_agg(expression) - record + expression jsonb - aggregates records as a JSON array of objects + aggregates values as a JSON array