]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: move the mention of aggregate JSON functions up in section
authorBruce Momjian <bruce@momjian.us>
Mon, 17 Oct 2022 19:21:29 +0000 (15:21 -0400)
committerBruce Momjian <bruce@momjian.us>
Mon, 17 Oct 2022 19:21:29 +0000 (15:21 -0400)
It was previously easily overlooked at the end of several tables.

Reported-by: Alex Denman
Discussion: https://postgr.es/m/166335888474.659.16897487975376230364@wrigleys.postgresql.org

Backpatch-through: 10

doc/src/sgml/func.sgml

index 4c7ff22d6be040c8dc3cf3ced06feefbfefdd339..cf3e6fd6608f38769116e81bb38670807f0479cb 100644 (file)
@@ -11260,6 +11260,12 @@ table2-mapping
    <type>jsonb</type>, but not for <type>json</type>. They follow the
    ordering rules for B-tree operations outlined at <xref
    linkend="json-indexing">.
+   See also <xref linkend="functions-aggregate"> for the aggregate
+   function <function>json_agg</function> which aggregates record
+   values as JSON, the aggregate function
+   <function>json_object_agg</function> which aggregates pairs of values
+   into a JSON object, and their <type>jsonb</type> equivalents,
+   <function>jsonb_agg</function> and <function>jsonb_object_agg</function>.
   </para>
   <para>
    Some further operators also exist only for <type>jsonb</type>, as shown
@@ -12090,15 +12096,6 @@ table2-mapping
     </para>
   </note>
 
-  <para>
-    See also <xref linkend="functions-aggregate"> for the aggregate
-    function <function>json_agg</function> which aggregates record
-    values as JSON, and the aggregate function
-    <function>json_object_agg</function> which aggregates pairs of values
-    into a JSON object, and their <type>jsonb</type> equivalents,
-    <function>jsonb_agg</> and <function>jsonb_object_agg</>.
-  </para>
-
  </sect1>
 
  <sect1 id="functions-sequence">