Remove ambiguity for jsonb_path_match() and jsonb_path_exists()
authorAlexander Korotkov <akorotkov@postgresql.org>
Wed, 20 Mar 2019 07:27:56 +0000 (10:27 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Wed, 20 Mar 2019 07:30:56 +0000 (10:30 +0300)
commit641fde25233ef3ecc3b8101fe287eea9fceba6fd
tree0636c079566c00b202858caf44fc921471b95595
parent1f39a1c0641531e0462a4822f2dba904c5d4d699
Remove ambiguity for jsonb_path_match() and jsonb_path_exists()

There are 2-arguments and 4-arguments versions of jsonb_path_match() and
jsonb_path_exists().  But 4-arguments versions have optional 3rd and 4th
arguments, that leads to ambiguity.  In the same time 2-arguments versions are
needed only for @@ and @? operators.  So, rename 2-arguments versions to
remove the ambiguity.

Catversion is bumped.
src/include/catalog/catversion.h
src/include/catalog/pg_operator.dat
src/include/catalog/pg_proc.dat
src/test/regress/expected/jsonb_jsonpath.out
src/test/regress/sql/jsonb_jsonpath.sql