pgsql: PLAN clauses for JSON_TABLE - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: PLAN clauses for JSON_TABLE
Date
Msg-id E1nbo23-000TEP-5a@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fadb48b00e02ccfd152baa80942de30205ab3c4f

Modified Files
--------------
src/backend/nodes/copyfuncs.c               |  26 ++
src/backend/nodes/equalfuncs.c              |   3 +
src/backend/nodes/makefuncs.c               |  19 +
src/backend/nodes/outfuncs.c                |   3 +
src/backend/nodes/readfuncs.c               |   3 +
src/backend/parser/gram.y                   | 130 +++++-
src/backend/parser/parse_jsontable.c        | 323 +++++++++++++--
src/backend/utils/adt/jsonpath_exec.c       | 118 ++++--
src/backend/utils/adt/ruleutils.c           |  50 +++
src/include/nodes/makefuncs.h               |   2 +
src/include/nodes/nodes.h                   |   1 +
src/include/nodes/parsenodes.h              |  42 ++
src/include/nodes/primnodes.h               |   3 +
src/include/parser/kwlist.h                 |   1 +
src/test/regress/expected/jsonb_sqljson.out | 600 ++++++++++++++++++++++++++--
src/test/regress/sql/jsonb_sqljson.sql      | 396 +++++++++++++++++-
src/tools/pgindent/typedefs.list            |   3 +
17 files changed, 1614 insertions(+), 109 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Have VACUUM warn on relfrozenxid "in the future".
Next
From: Oleg Bartunov
Date:
Subject: Re: pgsql: JSON_TABLE