Fix documentation of argument type of json_agg and jsonb_agg
authorAndrew Dunstan
Mon, 22 Dec 2014 19:20:19 +0000 (14:20 -0500)
committerAndrew Dunstan
Mon, 22 Dec 2014 19:21:20 +0000 (14:21 -0500)
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

index b7e65a58ea5550eeaaa1f5c53475d017c249f853..3ec030288f4605740b2bcb492b00fcebfb77f5e2 100644 (file)
@@ -11572,15 +11572,15 @@ SELECT NULLIF(value, '(none)') ...
        
         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