Skip to content

Commit b34bc87

Browse files
committed
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
1 parent a37980d commit b34bc87

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/src/sgml/func.sgml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12428,18 +12428,18 @@ table2-mapping
1242812428
<entry><literal>[{"f1":1},2,null,3]</literal></entry>
1242912429
</row>
1243012430
<row>
12431-
<entry><para><literal>jsonb_set(target jsonb, path text[], new_value jsonb<optional>, <parameter>create_missing</parameter> <type>boolean</type></optional>)</literal>
12431+
<entry><para><literal>jsonb_set(target jsonb, path text[], new_value jsonb <optional>, create_missing boolean</optional>)</literal>
1243212432
</para></entry>
1243312433
<entry><para><type>jsonb</type></para></entry>
1243412434
<entry>
1243512435
Returns <replaceable>target</replaceable>
1243612436
with the section designated by <replaceable>path</replaceable>
1243712437
replaced by <replaceable>new_value</replaceable>, or with
1243812438
<replaceable>new_value</replaceable> added if
12439-
<replaceable>create_missing</replaceable> is true ( default is
12439+
<replaceable>create_missing</replaceable> is true (default is
1244012440
<literal>true</literal>) and the item
1244112441
designated by <replaceable>path</replaceable> does not exist.
12442-
As with the path orientated operators, negative integers that
12442+
As with the path oriented operators, negative integers that
1244312443
appear in <replaceable>path</replaceable> count from the end
1244412444
of JSON arrays.
1244512445
</entry>
@@ -12453,7 +12453,7 @@ table2-mapping
1245312453
<row>
1245412454
<entry>
1245512455
<para><literal>
12456-
jsonb_insert(target jsonb, path text[], new_value jsonb, <optional><parameter>insert_after</parameter> <type>boolean</type></optional>)
12456+
jsonb_insert(target jsonb, path text[], new_value jsonb <optional>, insert_after boolean</optional>)
1245712457
</literal></para>
1245812458
</entry>
1245912459
<entry><para><type>jsonb</type></para></entry>
@@ -12468,7 +12468,7 @@ table2-mapping
1246812468
designated by <replaceable>path</replaceable> is in JSONB object,
1246912469
<replaceable>new_value</replaceable> will be inserted only if
1247012470
<replaceable>target</replaceable> does not exist. As with the path
12471-
orientated operators, negative integers that appear in
12471+
oriented operators, negative integers that appear in
1247212472
<replaceable>path</replaceable> count from the end of JSON arrays.
1247312473
</entry>
1247412474
<entry>
@@ -12509,7 +12509,7 @@ table2-mapping
1250912509
<row>
1251012510
<entry>
1251112511
<para><literal>
12512-
jsonb_path_exists(target jsonb, path jsonpath [, vars jsonb [, silent bool]])
12512+
jsonb_path_exists(target jsonb, path jsonpath <optional>, vars jsonb <optional>, silent bool</optional></optional>)
1251312513
</literal></para>
1251412514
</entry>
1251512515
<entry><type>boolean</type></entry>
@@ -12529,7 +12529,7 @@ table2-mapping
1252912529
<row>
1253012530
<entry>
1253112531
<para><literal>
12532-
jsonb_path_match(target jsonb, path jsonpath [, vars jsonb, silent bool])
12532+
jsonb_path_match(target jsonb, path jsonpath <optional>, vars jsonb <optional>, silent bool</optional></optional>)
1253312533
</literal></para>
1253412534
</entry>
1253512535
<entry><type>boolean</type></entry>
@@ -12550,7 +12550,7 @@ table2-mapping
1255012550
<row>
1255112551
<entry>
1255212552
<para><literal>
12553-
jsonb_path_query(target jsonb, path jsonpath [, vars jsonb, silent bool])
12553+
jsonb_path_query(target jsonb, path jsonpath <optional>, vars jsonb <optional>, silent bool</optional></optional>)
1255412554
</literal></para>
1255512555
</entry>
1255612556
<entry><type>setof jsonb</type></entry>
@@ -12578,7 +12578,7 @@ table2-mapping
1257812578
<row>
1257912579
<entry>
1258012580
<para><literal>
12581-
jsonb_path_query_array(target jsonb, path jsonpath [, vars jsonb, silent bool])
12581+
jsonb_path_query_array(target jsonb, path jsonpath <optional>, vars jsonb <optional>, silent bool</optional></optional>)
1258212582
</literal></para>
1258312583
</entry>
1258412584
<entry><type>jsonb</type></entry>
@@ -12598,7 +12598,7 @@ table2-mapping
1259812598
<row>
1259912599
<entry>
1260012600
<para><literal>
12601-
jsonb_path_query_first(target jsonb, path jsonpath [, vars jsonb, silent bool])
12601+
jsonb_path_query_first(target jsonb, path jsonpath <optional>, vars jsonb <optional>, silent bool</optional></optional>)
1260212602
</literal></para>
1260312603
</entry>
1260412604
<entry><type>jsonb</type></entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy