Doc: alphabetize aggregate function table
authorDavid Rowley
Thu, 12 Sep 2024 10:36:39 +0000 (22:36 +1200)
committerDavid Rowley
Thu, 12 Sep 2024 10:36:39 +0000 (22:36 +1200)
A few recent JSON aggregates have been added without much consideration
to the existing order.  Put these back in alphabetical order (with the
exception of the JSONB variant of each JSON aggregate).

Author: Wolfgang Walther 
Reviewed-by: Marlene Reiterer
Discussion: https://postgr.es/m/6a7b910c-3feb-4006-b817-9b4759cb6bb6%40technowledgy.de
Backpatch-through: 16, where these aggregates were added

doc/src/sgml/func.sgml

index 1bde4091ca6b37bb0025bf74a68f4f3fb1f2d786..1370440fae29ad99d35a5c17c63a931e551f26e3 100644 (file)
@@ -21925,6 +21925,54 @@ SELECT NULLIF(value, '(none)') ...
        No
       
 
+      
+       
+        
+         json_agg_strict
+        
+        json_agg_strict ( anyelement )
+        json
+       
+       
+        
+         jsonb_agg_strict
+        
+        jsonb_agg_strict ( anyelement )
+        jsonb
+       
+       
+        Collects all the input values, skipping nulls, into a JSON array.
+        Values are converted to JSON as per to_json
+        or to_jsonb.
+       
+       No
+      
+
+      
+       
+        json_arrayagg
+        json_arrayagg (
+         value_expression 
+         ORDER BY sort_expression 
+         { NULL | ABSENT } ON NULL 
+         RETURNING data_type  FORMAT JSON  ENCODING UTF8   )
+       
+       
+        Behaves in the same way as json_array
+        but as an aggregate function so it only takes one
+        value_expression parameter.
+        If ABSENT ON NULL is specified, any NULL
+        values are omitted.
+        If ORDER BY is specified, the elements will
+        appear in the array in that order rather than in the input order.
+       
+       
+        SELECT json_arrayagg(v) FROM (VALUES(2),(1)) t(v)
+        [2, 1]
+       
+       No
+      
+
       
        
          json_objectagg
@@ -22035,31 +22083,6 @@ SELECT NULLIF(value, '(none)') ...
        No
       
 
-      
-       
-        json_arrayagg
-        json_arrayagg (
-         value_expression 
-         ORDER BY sort_expression 
-         { NULL | ABSENT } ON NULL 
-         RETURNING data_type  FORMAT JSON  ENCODING UTF8   )
-       
-       
-        Behaves in the same way as json_array
-        but as an aggregate function so it only takes one
-        value_expression parameter.
-        If ABSENT ON NULL is specified, any NULL
-        values are omitted.
-        If ORDER BY is specified, the elements will
-        appear in the array in that order rather than in the input order.
-       
-       
-        SELECT json_arrayagg(v) FROM (VALUES(2),(1)) t(v)
-        [2, 1]
-       
-       No
-      
-
       
        
         
@@ -22168,29 +22191,6 @@ SELECT NULLIF(value, '(none)') ...
        No
       
 
-      
-       
-        
-         json_agg_strict
-        
-        json_agg_strict ( anyelement )
-        json
-       
-       
-        
-         jsonb_agg_strict
-        
-        jsonb_agg_strict ( anyelement )
-        jsonb
-       
-       
-        Collects all the input values, skipping nulls, into a JSON array.
-        Values are converted to JSON as per to_json
-        or to_jsonb.
-       
-       No
-      
-