postgres/src
Andrew Dunstan 1a36bc9dba SQL/JSON query functions
This introduces the SQL/JSON functions for querying JSON data using
jsonpath expressions. The functions are:

JSON_EXISTS()
JSON_QUERY()
JSON_VALUE()

All of these functions only operate on jsonb. The workaround for now is
to cast the argument to jsonb.

JSON_EXISTS() tests if the jsonpath expression applied to the jsonb
value yields any values. JSON_VALUE() must return a single value, and an
error occurs if it tries to return multiple values. JSON_QUERY() must
return a json object or array, and there are various WRAPPER options for
handling scalar or multi-value results. Both these functions have
options for handling EMPTY and ERROR conditions.

Nikita Glukhov

Reviewers have included (in no particular order) Andres Freund, Alexander
Korotkov, Pavel Stehule, Andrew Alsup, Erik Rijkers, Zihong Yu,
Himanshu Upadhyaya, Daniel Gustafsson, Justin Pryzby.

Discussion: https://postgr.es/m/cd0bb935-0158-78a7-08b5-904886deac4b@postgrespro.ru
2022-03-29 16:57:13 -04:00
..
backend SQL/JSON query functions 2022-03-29 16:57:13 -04:00
bin In 020_createdb.pl, change order of command-line arguments. 2022-03-29 13:48:39 -04:00
common Make update-unicode target work in vpath builds 2022-03-25 09:47:50 +01:00
fe_utils Allow pgbench to retry in some cases. 2022-03-23 19:05:45 +09:00
include SQL/JSON query functions 2022-03-29 16:57:13 -04:00
interfaces Enable SSL library detection via PQsslAttribute() 2022-03-29 14:02:45 +02:00
makefiles Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pl Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
port Simplify coding around path_contains_parent_reference(). 2022-01-31 13:53:38 -05:00
template Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
test SQL/JSON query functions 2022-03-29 16:57:13 -04:00
timezone Update copyright for 2022 2022-01-07 19:04:57 -05:00
tools Add new block-by-block strategy for CREATE DATABASE. 2022-03-29 11:48:36 -04:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
Makefile.shlib AIX: Fix missing libpq symbols by respecting SHLIB_EXPORTS. 2021-09-06 11:27:59 -07:00
nls-global.mk