From: Tom Lane Date: Fri, 27 Sep 2019 15:01:37 +0000 (-0400) Subject: Doc: clean up markup for jsonb_set and related functions. X-Git-Tag: REL9_6_16~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69ac2c6fbb9421c30012255ce40e4d6d903e063b;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 857501f6133..cbc1aac6af8 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -11373,7 +11373,7 @@ table2-mapping [{"f1":1},2,null,3] - jsonb_set(target jsonb, path text[], new_value jsonb, create_missing boolean) + jsonb_set(target jsonb, path text[], new_value jsonb , create_missing boolean) jsonb @@ -11381,10 +11381,10 @@ table2-mapping with the section designated by path replaced by new_value, or with new_value added if - create_missing is true ( default is + create_missing is true (default is true) and the item designated by path does not exist. - As with the path orientated operators, negative integers that + As with the path oriented operators, negative integers that appear in path count from the end of JSON arrays. @@ -11398,7 +11398,7 @@ table2-mapping - jsonb_insert(target jsonb, path text[], new_value jsonb, insert_after boolean) + jsonb_insert(target jsonb, path text[], new_value jsonb , insert_after boolean) jsonb @@ -11413,7 +11413,7 @@ table2-mapping designated by path is in JSONB object, new_value will be inserted only if target does not exist. As with the path - orientated operators, negative integers that appear in + oriented operators, negative integers that appear in path count from the end of JSON arrays.