Remove ambiguity for jsonb_path_match() and jsonb_path_exists()
Alexander Korotkov <akorotkov@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_operator.dat | modified | +2 −2 |
| src/include/catalog/pg_proc.dat | modified | +2 −2 |
| src/test/regress/expected/jsonb_jsonpath.out | modified | +12 −0 |
| src/test/regress/sql/jsonb_jsonpath.sql | modified | +2 −0 |