aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-06-26 16:22:15 -0700
committerTom Lane <tgl@sss.pgh.pa.us>2014-06-26 16:22:15 -0700
commitf71136eeeb5c6a234e19a245db7ae1484fc7bf4f (patch)
tree735f5ec1cbd2f721de7fe21fac130683558bd7c0 /doc/src
parent344eed91e9d5bfea698b30351abde69ea4e893a8 (diff)
downloadpostgresql-f71136eeeb5c6a234e19a245db7ae1484fc7bf4f.tar.gz
postgresql-f71136eeeb5c6a234e19a245db7ae1484fc7bf4f.zip
Get rid of bogus separate pg_proc entries for json_extract_path operators.
These should not have existed to begin with, but there was apparently some misunderstanding of the purpose of the opr_sanity regression test item that checks for operator implementation functions with their own comments. The idea there is to check for unintentional violations of the rule that operator implementation functions shouldn't be documented separately .... but for these functions, that is in fact what we want, since the variadic option is useful and not accessible via the operator syntax. Get rid of the extra pg_proc entries and fix the regression test and documentation to be explicit about what we're doing here.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/func.sgml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index f4754588ae7..551576a08b6 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -10524,7 +10524,8 @@ table2-mapping
<entry><para><type>json</type></para><para><type>jsonb</type>
</para></entry>
<entry>
- Returns JSON value pointed to by <replaceable>path_elems</replaceable>.
+ Returns JSON value pointed to by <replaceable>path_elems</replaceable>
+ (equivalent to <literal>#&gt;</literal> operator).
</entry>
<entry><literal>json_extract_path('{"f2":{"f3":1},"f4":{"f5":99,"f6":"foo"}}','f4')</literal></entry>
<entry><literal>{"f5":99,"f6":"foo"}</literal></entry>
@@ -10536,7 +10537,8 @@ table2-mapping
<entry><type>text</type></entry>
<entry>
Returns JSON value pointed to by <replaceable>path_elems</replaceable>
- as <type>text</>.
+ as <type>text</>
+ (equivalent to <literal>#&gt;&gt;</literal> operator).
</entry>
<entry><literal>json_extract_path_text('{"f2":{"f3":1},"f4":{"f5":99,"f6":"foo"}}','f4', 'f6')</literal></entry>
<entry><literal>foo</literal></entry>