postgresql/src/include/parser
Andrew Dunstan 33a377608f IS JSON predicate
This patch intrdocuces the SQL standard IS JSON predicate. It operates
on text and bytea values representing JSON as well as on the json and
jsonb types. Each test has an IS and IS NOT variant. The tests are:

IS JSON [VALUE]
IS JSON ARRAY
IS JSON OBJECT
IS JSON SCALAR
IS JSON  WITH | WITHOUT UNIQUE KEYS

These are mostly self-explanatory, but note that IS JSON WITHOUT UNIQUE
KEYS is true whenever IS JSON is true, and IS JSON WITH UNIQUE KEYS is
true whenever IS JSON is true except it IS JSON OBJECT is true and there
are duplicate keys (which is never the case when applied to jsonb values).

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-28 15:37:08 -04:00
..
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
analyze.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
gramparse.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
kwlist.h IS JSON predicate 2022-03-28 15:37:08 -04:00
parse_agg.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_clause.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_coerce.h Fix failure to validate the result of select_common_type(). 2022-01-29 11:41:18 -05:00
parse_collate.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_cte.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_enr.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_expr.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_func.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_merge.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
parse_node.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
parse_oper.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_param.h Parse/analyze function renaming 2022-03-04 14:50:22 +01:00
parse_relation.h Add support for MERGE SQL command 2022-03-28 16:47:48 +02:00
parse_target.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_type.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parse_utilcmd.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parser.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
parsetree.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
scanner.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
scansup.h Update copyright for 2022 2022-01-07 19:04:57 -05:00