postgresql/src/include/nodes
Amit Langote de3600452b Add basic JSON_TABLE() functionality
JSON_TABLE() allows JSON data to be converted into a relational view
and thus used, for example, in a FROM clause, like other tabular
data.  Data to show in the view is selected from a source JSON object
using a JSON path expression to get a sequence of JSON objects that's
called a "row pattern", which becomes the source to compute the
SQL/JSON values that populate the view's output columns.  Column
values themselves are computed using JSON path expressions applied to
each of the JSON objects comprising the "row pattern", for which the
SQL/JSON query functions added in 6185c9737c are used.

To implement JSON_TABLE() as a table function, this augments the
TableFunc and TableFuncScanState nodes that are currently used to
support XMLTABLE() with some JSON_TABLE()-specific fields.

Note that the JSON_TABLE() spec includes NESTED COLUMNS and PLAN
clauses, which are required to provide more flexibility to extract
data out of nested JSON objects, but they are not implemented here
to keep this commit of manageable size.

Author: Nikita Glukhov <n.gluhov@postgrespro.ru>
Author: Teodor Sigaev <teodor@sigaev.ru>
Author: Oleg Bartunov <obartunov@gmail.com>
Author: Alexander Korotkov <aekorotkov@gmail.com>
Author: Andrew Dunstan <andrew@dunslane.net>
Author: Amit Langote <amitlangote09@gmail.com>
Author: Jian He <jian.universality@gmail.com>

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, Álvaro Herrera, Jian He

Discussion: https://postgr.es/m/cd0bb935-0158-78a7-08b5-904886deac4b@postgrespro.ru
Discussion: https://postgr.es/m/20220616233130.rparivafipt6doj3@alap3.anarazel.de
Discussion: https://postgr.es/m/abd9b83b-aa66-f230-3d6d-734817f0995d%40postgresql.org
Discussion: https://postgr.es/m/CA+HiwqE4XTdfb1nW=Ojoy_tQSRhYt-q_kb6i5d4xcKyrLC1Nbg@mail.gmail.com
2024-04-04 20:20:15 +09:00
..
.gitignore Automatically generate node support functions 2022-07-09 08:53:59 +02:00
bitmapset.h Move some bitmap logic out of bitmapset.c 2024-03-06 14:30:16 +07:00
execnodes.h Add basic JSON_TABLE() functionality 2024-04-04 20:20:15 +09:00
extensible.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
lockoptions.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
makefuncs.h Add basic JSON_TABLE() functionality 2024-04-04 20:20:15 +09:00
memnodes.h Adjust memory allocation functions to allow sibling calls 2024-02-27 16:39:42 +13:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
miscnodes.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
multibitmapset.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
nodeFuncs.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
nodes.h Do not output actual value of location fields in node serialization by default 2024-03-22 09:49:12 +01:00
params.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
parsenodes.h Add basic JSON_TABLE() functionality 2024-04-04 20:20:15 +09:00
pathnodes.h Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2024-03-30 10:00:26 +00:00
pg_list.h Add macros for looping through a List without a ListCell. 2024-01-04 16:09:34 -06:00
plannodes.h Add support for MERGE ... WHEN NOT MATCHED BY SOURCE. 2024-03-30 10:00:26 +00:00
primnodes.h Add basic JSON_TABLE() functionality 2024-04-04 20:20:15 +09:00
print.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
queryjumble.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
readfuncs.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
replnodes.h Allow setting failover property in the replication command. 2024-01-29 09:37:23 +05:30
subscripting.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
supportnodes.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
tidbitmap.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
value.h Update copyright for 2024 2024-01-03 20:49:05 -05:00