Feature: Import PostgreSQL 15 BETA4 new parser.
authorBo Peng <pengbo@sraoss.co.jp>
Wed, 21 Sep 2022 15:23:53 +0000 (00:23 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Wed, 21 Sep 2022 15:23:53 +0000 (00:23 +0900)
commit424e68c168796ff545ceb682abc6e647685cd239
tree2308f7ed0e1d3d23f2b75bdf9907f5732140b1e8
parentdc559c07ee5affc7035efa6e0f00185e211079a0
Feature: Import PostgreSQL 15 BETA4 new parser.

Major changes of PostgreSQL 15 parser include:

- Add new SQL MERGE command

  MERGE INTO ... USING ...

- Add new option HEADER MATCH to COPY FROM

  COPY ... FROM stdin WITH (HEADER MATCH);

- Allow foreign key ON DELETE SET actions

  CREATE TABLE t1 (
      ...
      FOREIGN KEY (c1, c2) REFERENCES t2 ON DELETE SET NULL (c2)
  );

- Allow SET ACCESS METHOD in ALTER TABLE

  ALTER TABLE ... SET ACCESS METHOD ...;
46 files changed:
src/context/pool_query_context.c
src/include/parser/gramparse.h
src/include/parser/keywords.h
src/include/parser/kwlist.h
src/include/parser/kwlist_d.h
src/include/parser/kwlookup.h
src/include/parser/makefuncs.h
src/include/parser/nodes.h
src/include/parser/parsenodes.h
src/include/parser/parser.h
src/include/parser/pg_class.h
src/include/parser/pg_config_manual.h
src/include/parser/pg_list.h
src/include/parser/pg_trigger.h
src/include/parser/pg_wchar.h
src/include/parser/primnodes.h
src/include/parser/scanner.h
src/include/parser/scansup.h
src/include/parser/stringinfo.h
src/include/parser/value.h
src/parser/copyfuncs.c
src/parser/gram.c
src/parser/gram.h
src/parser/gram.y
src/parser/gram_minimal.c
src/parser/gram_minimal.h
src/parser/gram_minimal.y
src/parser/gram_template.y
src/parser/keywords.c
src/parser/kwlookup.c
src/parser/list.c
src/parser/makefuncs.c
src/parser/nodes.c
src/parser/outfuncs.c
src/parser/parser.c
src/parser/scan.c
src/parser/scan.l
src/parser/scansup.c
src/parser/snprintf.c
src/parser/stringinfo.c
src/parser/value.c
src/parser/wchar.c
src/protocol/pool_process_query.c
src/rewrite/pool_timestamp.c
src/test/regression/tests/010.rewrite_timestamp/timestamp/expected/misc.out
src/utils/pool_select_walker.c