From 302bed04b2e2c6074cccc3b63aa1962c5a4461dd Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Mon, 22 Dec 2014 14:20:19 -0500 Subject: [PATCH] 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. --- doc/src/sgml/func.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1d597d4d1b1..41b5c1bd1a3 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -12160,15 +12160,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