diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2019-09-27 11:01:36 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2019-09-27 11:01:36 -0400 |
commit | 240c38a48821c2da12815f36a792ab5dfd26c49e (patch) | |
tree | 900c8d48bb41b15b43433551ee6536633e59d190 /doc | |
parent | 84ced048d18d166d81a994caafa76077ddc41af8 (diff) | |
download | postgresql-240c38a48821c2da12815f36a792ab5dfd26c49e.tar.gz |
Doc: clean up markup for jsonb_set and related functions.
The markup for optional parameters was neither correct nor consistent.
In passing, fix a spelling mistake.
Per report from Alex Macy. Some of these mistakes are old, so
back-patch as appropriate.
Discussion: https://postgr.es/m/156953522258.1204.12736099368284950578@wrigleys.postgresql.org
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/sgml/func.sgml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1ef25bcbce..a9d0e989dc 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -11933,7 +11933,7 @@ table2-mapping <entry><literal>[{"f1":1},2,null,3]</literal></entry> </row> <row> - <entry><para><literal>jsonb_set(target jsonb, path text[], new_value jsonb<optional>, <parameter>create_missing</parameter> <type>boolean</type></optional>)</literal> + <entry><para><literal>jsonb_set(target jsonb, path text[], new_value jsonb <optional>, create_missing boolean</optional>)</literal> </para></entry> <entry><para><type>jsonb</type></para></entry> <entry> @@ -11941,10 +11941,10 @@ table2-mapping with the section designated by <replaceable>path</replaceable> replaced by <replaceable>new_value</replaceable>, or with <replaceable>new_value</replaceable> added if - <replaceable>create_missing</replaceable> is true ( default is + <replaceable>create_missing</replaceable> is true (default is <literal>true</literal>) and the item designated by <replaceable>path</replaceable> does not exist. - As with the path orientated operators, negative integers that + As with the path oriented operators, negative integers that appear in <replaceable>path</replaceable> count from the end of JSON arrays. </entry> @@ -11958,7 +11958,7 @@ table2-mapping <row> <entry> <para><literal> - jsonb_insert(target jsonb, path text[], new_value jsonb, <optional><parameter>insert_after</parameter> <type>boolean</type></optional>) + jsonb_insert(target jsonb, path text[], new_value jsonb <optional>, insert_after boolean</optional>) </literal></para> </entry> <entry><para><type>jsonb</type></para></entry> @@ -11973,7 +11973,7 @@ table2-mapping designated by <replaceable>path</replaceable> is in JSONB object, <replaceable>new_value</replaceable> will be inserted only if <replaceable>target</replaceable> does not exist. As with the path - orientated operators, negative integers that appear in + oriented operators, negative integers that appear in <replaceable>path</replaceable> count from the end of JSON arrays. </entry> <entry> |