From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove ambiguity for jsonb_path_match() and jsonb_path_exists()
Date: Wed, 20 Mar 2019 07:33:31 +0000
Message-ID: <E1h6Vj9-0006nx-4c@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org
Subject: Re: pgsql: Remove ambiguity for jsonb_path_match() and jsonb_path_exists()
In-Reply-To: <E1h6Vj9-0006nx-4c@gemulon.postgresql.org>
References: <E1h6Vj9-0006nx-4c@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox