aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2022-10-17 15:21:29 -0400
committerBruce Momjian <bruce@momjian.us>2022-10-17 15:21:29 -0400
commit44efd345c09311eb63cd1573827b4177fde6aa5c (patch)
tree76bf5637e2206c300545e9af8533629dfb27c06a
parent6a71bf6f587cddc2129e679fc3ecdd937710245e (diff)
downloadpostgresql-44efd345c09311eb63cd1573827b4177fde6aa5c.tar.gz
postgresql-44efd345c09311eb63cd1573827b4177fde6aa5c.zip
doc: move the mention of aggregate JSON functions up in section
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
-rw-r--r--doc/src/sgml/func.sgml15
1 files changed, 6 insertions, 9 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 44cc4875323..827c4afc654 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -11862,6 +11862,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
@@ -12860,15 +12866,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</function> and <function>jsonb_object_agg</function>.
- </para>
-
</sect2>
<sect2 id="functions-sqljson-path">