Обсуждение: pgsql: Remove ambiguity for jsonb_path_match() and jsonb_path_exists()

Поиск
Список
Период
Сортировка

pgsql: Remove ambiguity for jsonb_path_match() and jsonb_path_exists()

От
Alexander Korotkov
Дата:
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/641fde25233ef3ecc3b8101fe287eea9fceba6fd

Modified Files
--------------
src/include/catalog/catversion.h             |  2 +-
src/include/catalog/pg_operator.dat          |  4 ++--
src/include/catalog/pg_proc.dat              |  4 ++--
src/test/regress/expected/jsonb_jsonpath.out | 12 ++++++++++++
src/test/regress/sql/jsonb_jsonpath.sql      |  2 ++
5 files changed, 19 insertions(+), 5 deletions(-)