PLAN clauses for JSON_TABLE
authorAndrew Dunstan <[email protected]>
Tue, 5 Apr 2022 18:09:04 +0000 (14:09 -0400)
committerAndrew Dunstan <[email protected]>
Tue, 5 Apr 2022 18:17:08 +0000 (14:17 -0400)
commitfadb48b00e02ccfd152baa80942de30205ab3c4f
tree67664217c57aff2d9006738fd538cba887b8beb7
parente83ebfe6d767dafcefe00bc5f11392a3d6976c1b
PLAN clauses for JSON_TABLE

These clauses allow the user to specify how data from nested paths are
joined, allowing considerable freedom in shaping the tabular output of
JSON_TABLE.

PLAN DEFAULT allows the user to specify the global strategies when
dealing with sibling or child nested paths. The is often sufficient to
achieve the necessary goal, and is considerably simpler than the full
PLAN clause, which allows the user to specify the strategy to be used
for each named nested path.

Nikita Glukhov

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

Discussion: https://postgr.es/m/7e2cb85d-24cf-4abb-30a5-1a33715959bd@postgrespro.ru
17 files changed:
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/makefuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/backend/parser/gram.y
src/backend/parser/parse_jsontable.c
src/backend/utils/adt/jsonpath_exec.c
src/backend/utils/adt/ruleutils.c
src/include/nodes/makefuncs.h
src/include/nodes/nodes.h
src/include/nodes/parsenodes.h
src/include/nodes/primnodes.h
src/include/parser/kwlist.h
src/test/regress/expected/jsonb_sqljson.out
src/test/regress/sql/jsonb_sqljson.sql
src/tools/pgindent/typedefs.list