From f71136eeeb5c6a234e19a245db7ae1484fc7bf4f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 26 Jun 2014 16:22:15 -0700 Subject: 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. --- doc/src/sgml/func.sgml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/src') 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 jsonjsonb - Returns JSON value pointed to by path_elems. + Returns JSON value pointed to by path_elems + (equivalent to #> operator). json_extract_path('{"f2":{"f3":1},"f4":{"f5":99,"f6":"foo"}}','f4') {"f5":99,"f6":"foo"} @@ -10536,7 +10537,8 @@ table2-mapping text Returns JSON value pointed to by path_elems - as text. + as text + (equivalent to #>> operator). json_extract_path_text('{"f2":{"f3":1},"f4":{"f5":99,"f6":"foo"}}','f4', 'f6') foo -- cgit v1.2.3