pg_query 4.2.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/README.md +7 -9
- data/Rakefile +5 -6
- data/ext/pg_query/ext_symbols_freebsd.sym +1 -0
- data/ext/pg_query/ext_symbols_freebsd_with_ruby_abi_version.sym +2 -0
- data/ext/pg_query/ext_symbols_openbsd.sym +1 -0
- data/ext/pg_query/ext_symbols_openbsd_with_ruby_abi_version.sym +2 -0
- data/ext/pg_query/ext_symbols_with_ruby_abi_version.sym +2 -0
- data/ext/pg_query/extconf.rb +33 -9
- data/ext/pg_query/include/pg_query.h +28 -3
- data/ext/pg_query/include/pg_query_enum_defs.c +599 -167
- data/ext/pg_query/include/pg_query_fingerprint_conds.c +640 -520
- data/ext/pg_query/include/pg_query_fingerprint_defs.c +6400 -4633
- data/ext/pg_query/include/pg_query_outfuncs_conds.c +433 -343
- data/ext/pg_query/include/pg_query_outfuncs_defs.c +1472 -1152
- data/ext/pg_query/include/pg_query_readfuncs_conds.c +154 -124
- data/ext/pg_query/include/pg_query_readfuncs_defs.c +1886 -1506
- data/ext/pg_query/include/postgres/access/amapi.h +303 -0
- data/ext/pg_query/include/postgres/access/attmap.h +54 -0
- data/ext/pg_query/include/postgres/access/attnum.h +64 -0
- data/ext/pg_query/include/postgres/access/brin_internal.h +116 -0
- data/ext/pg_query/include/postgres/access/brin_tuple.h +112 -0
- data/ext/pg_query/include/postgres/access/clog.h +62 -0
- data/ext/pg_query/include/postgres/access/commit_ts.h +73 -0
- data/ext/pg_query/include/postgres/access/detoast.h +82 -0
- data/ext/pg_query/include/postgres/access/genam.h +246 -0
- data/ext/pg_query/include/postgres/access/gin.h +91 -0
- data/ext/pg_query/include/postgres/access/htup.h +89 -0
- data/ext/pg_query/include/postgres/access/htup_details.h +811 -0
- data/ext/pg_query/include/postgres/access/itup.h +170 -0
- data/ext/pg_query/include/postgres/access/parallel.h +81 -0
- data/ext/pg_query/include/postgres/access/printtup.h +35 -0
- data/ext/pg_query/include/postgres/access/relation.h +28 -0
- data/ext/pg_query/include/postgres/access/relscan.h +191 -0
- data/ext/pg_query/include/postgres/access/rmgrlist.h +49 -0
- data/ext/pg_query/include/postgres/access/sdir.h +67 -0
- data/ext/pg_query/include/postgres/access/skey.h +151 -0
- data/ext/pg_query/include/postgres/access/slru.h +218 -0
- data/ext/pg_query/include/postgres/access/stratnum.h +85 -0
- data/ext/pg_query/include/postgres/access/sysattr.h +29 -0
- data/ext/pg_query/include/postgres/access/table.h +28 -0
- data/ext/pg_query/include/postgres/access/tableam.h +2110 -0
- data/ext/pg_query/include/postgres/access/tidstore.h +50 -0
- data/ext/pg_query/include/postgres/access/toast_compression.h +73 -0
- data/ext/pg_query/include/postgres/access/transam.h +418 -0
- data/ext/pg_query/include/postgres/access/tsmapi.h +82 -0
- data/ext/pg_query/include/postgres/access/tupconvert.h +54 -0
- data/ext/pg_query/include/postgres/access/tupdesc.h +154 -0
- data/ext/pg_query/include/postgres/access/tupmacs.h +207 -0
- data/ext/pg_query/include/postgres/access/twophase.h +65 -0
- data/ext/pg_query/include/postgres/access/xact.h +530 -0
- data/ext/pg_query/include/postgres/access/xlog.h +310 -0
- data/ext/pg_query/include/postgres/access/xlog_internal.h +405 -0
- data/ext/pg_query/include/postgres/access/xlogbackup.h +43 -0
- data/ext/pg_query/include/postgres/access/xlogdefs.h +82 -0
- data/ext/pg_query/include/postgres/access/xlogprefetcher.h +55 -0
- data/ext/pg_query/include/postgres/access/xlogreader.h +444 -0
- data/ext/pg_query/include/postgres/access/xlogrecord.h +248 -0
- data/ext/pg_query/include/postgres/access/xlogrecovery.h +158 -0
- data/ext/pg_query/include/postgres/archive/archive_module.h +67 -0
- data/ext/pg_query/include/postgres/c.h +1374 -0
- data/ext/pg_query/include/postgres/catalog/catalog.h +47 -0
- data/ext/pg_query/include/postgres/catalog/catversion.h +62 -0
- data/ext/pg_query/include/postgres/catalog/dependency.h +228 -0
- data/ext/pg_query/include/postgres/catalog/genbki.h +149 -0
- data/ext/pg_query/include/postgres/catalog/index.h +218 -0
- data/ext/pg_query/include/postgres/catalog/indexing.h +54 -0
- data/ext/pg_query/include/postgres/catalog/namespace.h +189 -0
- data/ext/pg_query/include/postgres/catalog/objectaccess.h +267 -0
- data/ext/pg_query/include/postgres/catalog/objectaddress.h +93 -0
- data/ext/pg_query/include/postgres/catalog/pg_aggregate.h +182 -0
- data/ext/pg_query/include/postgres/catalog/pg_aggregate_d.h +78 -0
- data/ext/pg_query/include/postgres/catalog/pg_am.h +66 -0
- data/ext/pg_query/include/postgres/catalog/pg_am_d.h +47 -0
- data/ext/pg_query/include/postgres/catalog/pg_attribute.h +240 -0
- data/ext/pg_query/include/postgres/catalog/pg_attribute_d.h +62 -0
- data/ext/pg_query/include/postgres/catalog/pg_authid.h +66 -0
- data/ext/pg_query/include/postgres/catalog/pg_authid_d.h +60 -0
- data/ext/pg_query/include/postgres/catalog/pg_class.h +235 -0
- data/ext/pg_query/include/postgres/catalog/pg_class_d.h +134 -0
- data/ext/pg_query/include/postgres/catalog/pg_collation.h +106 -0
- data/ext/pg_query/include/postgres/catalog/pg_collation_d.h +66 -0
- data/ext/pg_query/include/postgres/catalog/pg_constraint.h +278 -0
- data/ext/pg_query/include/postgres/catalog/pg_constraint_d.h +74 -0
- data/ext/pg_query/include/postgres/catalog/pg_control.h +260 -0
- data/ext/pg_query/include/postgres/catalog/pg_conversion.h +79 -0
- data/ext/pg_query/include/postgres/catalog/pg_conversion_d.h +38 -0
- data/ext/pg_query/include/postgres/catalog/pg_database.h +129 -0
- data/ext/pg_query/include/postgres/catalog/pg_database_d.h +53 -0
- data/ext/pg_query/include/postgres/catalog/pg_depend.h +77 -0
- data/ext/pg_query/include/postgres/catalog/pg_depend_d.h +36 -0
- data/ext/pg_query/include/postgres/catalog/pg_event_trigger.h +60 -0
- data/ext/pg_query/include/postgres/catalog/pg_event_trigger_d.h +36 -0
- data/ext/pg_query/include/postgres/catalog/pg_index.h +92 -0
- data/ext/pg_query/include/postgres/catalog/pg_index_d.h +59 -0
- data/ext/pg_query/include/postgres/catalog/pg_language.h +75 -0
- data/ext/pg_query/include/postgres/catalog/pg_language_d.h +41 -0
- data/ext/pg_query/include/postgres/catalog/pg_namespace.h +67 -0
- data/ext/pg_query/include/postgres/catalog/pg_namespace_d.h +36 -0
- data/ext/pg_query/include/postgres/catalog/pg_opclass.h +91 -0
- data/ext/pg_query/include/postgres/catalog/pg_opclass_d.h +51 -0
- data/ext/pg_query/include/postgres/catalog/pg_operator.h +124 -0
- data/ext/pg_query/include/postgres/catalog/pg_operator_d.h +142 -0
- data/ext/pg_query/include/postgres/catalog/pg_opfamily.h +67 -0
- data/ext/pg_query/include/postgres/catalog/pg_opfamily_d.h +51 -0
- data/ext/pg_query/include/postgres/catalog/pg_partitioned_table.h +76 -0
- data/ext/pg_query/include/postgres/catalog/pg_partitioned_table_d.h +36 -0
- data/ext/pg_query/include/postgres/catalog/pg_proc.h +223 -0
- data/ext/pg_query/include/postgres/catalog/pg_proc_d.h +101 -0
- data/ext/pg_query/include/postgres/catalog/pg_publication.h +161 -0
- data/ext/pg_query/include/postgres/catalog/pg_publication_d.h +38 -0
- data/ext/pg_query/include/postgres/catalog/pg_replication_origin.h +65 -0
- data/ext/pg_query/include/postgres/catalog/pg_replication_origin_d.h +33 -0
- data/ext/pg_query/include/postgres/catalog/pg_statistic.h +288 -0
- data/ext/pg_query/include/postgres/catalog/pg_statistic_d.h +199 -0
- data/ext/pg_query/include/postgres/catalog/pg_statistic_ext.h +91 -0
- data/ext/pg_query/include/postgres/catalog/pg_statistic_ext_d.h +45 -0
- data/ext/pg_query/include/postgres/catalog/pg_transform.h +51 -0
- data/ext/pg_query/include/postgres/catalog/pg_transform_d.h +34 -0
- data/ext/pg_query/include/postgres/catalog/pg_trigger.h +153 -0
- data/ext/pg_query/include/postgres/catalog/pg_trigger_d.h +109 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_config.h +56 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_config_d.h +34 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_dict.h +62 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_dict_d.h +35 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_parser.h +63 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_parser_d.h +37 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_template.h +54 -0
- data/ext/pg_query/include/postgres/catalog/pg_ts_template_d.h +34 -0
- data/ext/pg_query/include/postgres/catalog/pg_type.h +407 -0
- data/ext/pg_query/include/postgres/catalog/pg_type_d.h +324 -0
- data/ext/pg_query/include/postgres/catalog/storage.h +50 -0
- data/ext/pg_query/include/postgres/catalog/syscache_ids.h +104 -0
- data/ext/pg_query/include/postgres/commands/async.h +49 -0
- data/ext/pg_query/include/postgres/commands/dbcommands.h +37 -0
- data/ext/pg_query/include/postgres/commands/defrem.h +161 -0
- data/ext/pg_query/include/postgres/commands/event_trigger.h +97 -0
- data/ext/pg_query/include/postgres/commands/explain.h +145 -0
- data/ext/pg_query/include/postgres/commands/prepare.h +61 -0
- data/ext/pg_query/include/postgres/commands/tablespace.h +69 -0
- data/ext/pg_query/include/postgres/commands/trigger.h +288 -0
- data/ext/pg_query/include/postgres/commands/user.h +43 -0
- data/ext/pg_query/include/postgres/commands/vacuum.h +388 -0
- data/ext/pg_query/include/postgres/common/cryptohash.h +39 -0
- data/ext/pg_query/include/postgres/common/file_perm.h +56 -0
- data/ext/pg_query/include/postgres/common/file_utils.h +65 -0
- data/ext/pg_query/include/postgres/common/hashfn.h +119 -0
- data/ext/pg_query/include/postgres/common/hashfn_unstable.h +407 -0
- data/ext/pg_query/include/postgres/common/int.h +512 -0
- data/ext/pg_query/include/postgres/common/keywords.h +29 -0
- data/ext/pg_query/include/postgres/common/kwlookup.h +44 -0
- data/ext/pg_query/include/postgres/common/pg_prng.h +62 -0
- data/ext/pg_query/include/postgres/common/relpath.h +97 -0
- data/ext/pg_query/include/postgres/common/scram-common.h +70 -0
- data/ext/pg_query/include/postgres/common/sha2.h +32 -0
- data/ext/pg_query/include/postgres/common/string.h +44 -0
- data/ext/pg_query/include/postgres/common/unicode_east_asian_fw_table.h +124 -0
- data/ext/pg_query/include/postgres/common/unicode_nonspacing_table.h +326 -0
- data/ext/pg_query/include/postgres/copyfuncs.funcs.c +5261 -0
- data/ext/pg_query/include/postgres/copyfuncs.switch.c +989 -0
- data/ext/pg_query/include/postgres/datatype/timestamp.h +269 -0
- data/ext/pg_query/include/postgres/equalfuncs.funcs.c +3310 -0
- data/ext/pg_query/include/postgres/equalfuncs.switch.c +836 -0
- data/ext/pg_query/include/postgres/executor/execdesc.h +70 -0
- data/ext/pg_query/include/postgres/executor/executor.h +681 -0
- data/ext/pg_query/include/postgres/executor/functions.h +56 -0
- data/ext/pg_query/include/postgres/executor/instrument.h +120 -0
- data/ext/pg_query/include/postgres/executor/spi.h +207 -0
- data/ext/pg_query/include/postgres/executor/tablefunc.h +67 -0
- data/ext/pg_query/include/postgres/executor/tuptable.h +523 -0
- data/ext/pg_query/include/postgres/fmgr.h +800 -0
- data/ext/pg_query/include/postgres/foreign/fdwapi.h +294 -0
- data/ext/pg_query/include/postgres/funcapi.h +360 -0
- data/ext/pg_query/include/postgres/gram.h +1168 -0
- data/ext/pg_query/include/postgres/gramparse.h +75 -0
- data/ext/pg_query/include/postgres/jit/jit.h +106 -0
- data/ext/pg_query/include/postgres/kwlist_d.h +1164 -0
- data/ext/pg_query/include/postgres/lib/dshash.h +130 -0
- data/ext/pg_query/include/postgres/lib/ilist.h +1159 -0
- data/ext/pg_query/include/postgres/lib/pairingheap.h +102 -0
- data/ext/pg_query/include/postgres/lib/simplehash.h +1206 -0
- data/ext/pg_query/include/postgres/lib/sort_template.h +445 -0
- data/ext/pg_query/include/postgres/lib/stringinfo.h +243 -0
- data/ext/pg_query/include/postgres/libpq/auth.h +37 -0
- data/ext/pg_query/include/postgres/libpq/crypt.h +47 -0
- data/ext/pg_query/include/postgres/libpq/hba.h +186 -0
- data/ext/pg_query/include/postgres/libpq/libpq-be.h +361 -0
- data/ext/pg_query/include/postgres/libpq/libpq.h +143 -0
- data/ext/pg_query/include/postgres/libpq/pqcomm.h +169 -0
- data/ext/pg_query/include/postgres/libpq/pqformat.h +209 -0
- data/ext/pg_query/include/postgres/libpq/pqsignal.h +54 -0
- data/ext/pg_query/include/postgres/libpq/protocol.h +89 -0
- data/ext/pg_query/include/postgres/libpq/sasl.h +136 -0
- data/ext/pg_query/include/postgres/libpq/scram.h +37 -0
- data/ext/pg_query/include/postgres/mb/pg_wchar.h +793 -0
- data/ext/pg_query/include/postgres/mb/stringinfo_mb.h +24 -0
- data/ext/pg_query/include/postgres/miscadmin.h +527 -0
- data/ext/pg_query/include/postgres/nodes/bitmapset.h +140 -0
- data/ext/pg_query/include/postgres/nodes/execnodes.h +2855 -0
- data/ext/pg_query/include/postgres/nodes/extensible.h +164 -0
- data/ext/pg_query/include/postgres/nodes/lockoptions.h +61 -0
- data/ext/pg_query/include/postgres/nodes/makefuncs.h +127 -0
- data/ext/pg_query/include/postgres/nodes/memnodes.h +152 -0
- data/ext/pg_query/include/postgres/nodes/miscnodes.h +56 -0
- data/ext/pg_query/include/postgres/nodes/nodeFuncs.h +222 -0
- data/ext/pg_query/include/postgres/nodes/nodes.h +435 -0
- data/ext/pg_query/include/postgres/nodes/nodetags.h +491 -0
- data/ext/pg_query/include/postgres/nodes/params.h +170 -0
- data/ext/pg_query/include/postgres/nodes/parsenodes.h +4233 -0
- data/ext/pg_query/include/postgres/nodes/pathnodes.h +3438 -0
- data/ext/pg_query/include/postgres/nodes/pg_list.h +686 -0
- data/ext/pg_query/include/postgres/nodes/plannodes.h +1593 -0
- data/ext/pg_query/include/postgres/nodes/primnodes.h +2339 -0
- data/ext/pg_query/include/postgres/nodes/print.h +34 -0
- data/ext/pg_query/include/postgres/nodes/queryjumble.h +86 -0
- data/ext/pg_query/include/postgres/nodes/replnodes.h +132 -0
- data/ext/pg_query/include/postgres/nodes/supportnodes.h +346 -0
- data/ext/pg_query/include/postgres/nodes/tidbitmap.h +75 -0
- data/ext/pg_query/include/postgres/nodes/value.h +90 -0
- data/ext/pg_query/include/postgres/optimizer/cost.h +216 -0
- data/ext/pg_query/include/postgres/optimizer/geqo.h +90 -0
- data/ext/pg_query/include/postgres/optimizer/geqo_gene.h +45 -0
- data/ext/pg_query/include/postgres/optimizer/optimizer.h +205 -0
- data/ext/pg_query/include/postgres/optimizer/paths.h +271 -0
- data/ext/pg_query/include/postgres/optimizer/planmain.h +123 -0
- data/ext/pg_query/include/postgres/parser/analyze.h +66 -0
- data/ext/pg_query/include/postgres/parser/kwlist.h +518 -0
- data/ext/pg_query/include/postgres/parser/parse_agg.h +65 -0
- data/ext/pg_query/include/postgres/parser/parse_coerce.h +105 -0
- data/ext/pg_query/include/postgres/parser/parse_expr.h +25 -0
- data/ext/pg_query/include/postgres/parser/parse_func.h +74 -0
- data/ext/pg_query/include/postgres/parser/parse_node.h +358 -0
- data/ext/pg_query/include/postgres/parser/parse_oper.h +68 -0
- data/ext/pg_query/include/postgres/parser/parse_relation.h +129 -0
- data/ext/pg_query/include/postgres/parser/parse_type.h +61 -0
- data/ext/pg_query/include/postgres/parser/parser.h +68 -0
- data/ext/pg_query/include/postgres/parser/parsetree.h +61 -0
- data/ext/pg_query/include/postgres/parser/scanner.h +152 -0
- data/ext/pg_query/include/postgres/parser/scansup.h +27 -0
- data/ext/pg_query/include/postgres/partitioning/partdefs.h +26 -0
- data/ext/pg_query/include/postgres/pg_config.h +985 -0
- data/ext/pg_query/include/postgres/pg_config_manual.h +385 -0
- data/ext/pg_query/include/postgres/pg_config_os.h +8 -0
- data/ext/pg_query/include/postgres/pg_getopt.h +56 -0
- data/ext/pg_query/include/postgres/pg_trace.h +17 -0
- data/ext/pg_query/include/postgres/pgstat.h +780 -0
- data/ext/pg_query/include/postgres/pgtime.h +94 -0
- data/ext/pg_query/include/postgres/pl_gram.h +385 -0
- data/ext/pg_query/include/postgres/pl_reserved_kwlist.h +52 -0
- data/ext/pg_query/include/postgres/pl_reserved_kwlist_d.h +114 -0
- data/ext/pg_query/include/postgres/pl_unreserved_kwlist.h +112 -0
- data/ext/pg_query/include/postgres/pl_unreserved_kwlist_d.h +246 -0
- data/ext/pg_query/include/postgres/plerrcodes.h +998 -0
- data/ext/pg_query/include/postgres/plpgsql.h +1342 -0
- data/ext/pg_query/include/postgres/port/atomics/arch-arm.h +32 -0
- data/ext/pg_query/include/postgres/port/atomics/arch-hppa.h +17 -0
- data/ext/pg_query/include/postgres/port/atomics/arch-ppc.h +256 -0
- data/ext/pg_query/include/postgres/port/atomics/arch-x86.h +254 -0
- data/ext/pg_query/include/postgres/port/atomics/fallback.h +170 -0
- data/ext/pg_query/include/postgres/port/atomics/generic-gcc.h +323 -0
- data/ext/pg_query/include/postgres/port/atomics/generic-msvc.h +119 -0
- data/ext/pg_query/include/postgres/port/atomics/generic-sunpro.h +121 -0
- data/ext/pg_query/include/postgres/port/atomics/generic.h +437 -0
- data/ext/pg_query/include/postgres/port/atomics.h +606 -0
- data/ext/pg_query/include/postgres/port/pg_bitutils.h +421 -0
- data/ext/pg_query/include/postgres/port/pg_bswap.h +161 -0
- data/ext/pg_query/include/postgres/port/pg_crc32c.h +110 -0
- data/ext/pg_query/include/postgres/port/pg_iovec.h +117 -0
- data/ext/pg_query/include/postgres/port/simd.h +422 -0
- data/ext/pg_query/include/postgres/port/win32/arpa/inet.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/dlfcn.h +1 -0
- data/ext/pg_query/include/postgres/port/win32/grp.h +1 -0
- data/ext/pg_query/include/postgres/port/win32/netdb.h +7 -0
- data/ext/pg_query/include/postgres/port/win32/netinet/in.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/netinet/tcp.h +7 -0
- data/ext/pg_query/include/postgres/port/win32/pwd.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/sys/resource.h +20 -0
- data/ext/pg_query/include/postgres/port/win32/sys/select.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/sys/socket.h +34 -0
- data/ext/pg_query/include/postgres/port/win32/sys/un.h +17 -0
- data/ext/pg_query/include/postgres/port/win32/sys/wait.h +3 -0
- data/ext/pg_query/include/postgres/port/win32.h +59 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/dirent.h +34 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/sys/file.h +1 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/sys/param.h +1 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/sys/time.h +1 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/unistd.h +9 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/utime.h +3 -0
- data/ext/pg_query/include/postgres/port/win32_port.h +582 -0
- data/ext/pg_query/include/postgres/port.h +555 -0
- data/ext/pg_query/include/postgres/portability/instr_time.h +197 -0
- data/ext/pg_query/include/postgres/postgres.h +579 -0
- data/ext/pg_query/include/postgres/postgres_ext.h +73 -0
- data/ext/pg_query/include/postgres/postmaster/autovacuum.h +69 -0
- data/ext/pg_query/include/postgres/postmaster/bgworker.h +164 -0
- data/ext/pg_query/include/postgres/postmaster/bgworker_internals.h +60 -0
- data/ext/pg_query/include/postgres/postmaster/bgwriter.h +45 -0
- data/ext/pg_query/include/postgres/postmaster/interrupt.h +32 -0
- data/ext/pg_query/include/postgres/postmaster/pgarch.h +36 -0
- data/ext/pg_query/include/postgres/postmaster/postmaster.h +101 -0
- data/ext/pg_query/include/postgres/postmaster/startup.h +41 -0
- data/ext/pg_query/include/postgres/postmaster/syslogger.h +101 -0
- data/ext/pg_query/include/postgres/postmaster/walsummarizer.h +35 -0
- data/ext/pg_query/include/postgres/postmaster/walwriter.h +23 -0
- data/ext/pg_query/include/postgres/regex/regex.h +272 -0
- data/ext/pg_query/include/postgres/replication/logicallauncher.h +34 -0
- data/ext/pg_query/include/postgres/replication/logicalproto.h +274 -0
- data/ext/pg_query/include/postgres/replication/logicalworker.h +33 -0
- data/ext/pg_query/include/postgres/replication/origin.h +73 -0
- data/ext/pg_query/include/postgres/replication/reorderbuffer.h +734 -0
- data/ext/pg_query/include/postgres/replication/slot.h +289 -0
- data/ext/pg_query/include/postgres/replication/slotsync.h +38 -0
- data/ext/pg_query/include/postgres/replication/syncrep.h +109 -0
- data/ext/pg_query/include/postgres/replication/walreceiver.h +504 -0
- data/ext/pg_query/include/postgres/replication/walsender.h +76 -0
- data/ext/pg_query/include/postgres/rewrite/prs2lock.h +46 -0
- data/ext/pg_query/include/postgres/rewrite/rewriteHandler.h +41 -0
- data/ext/pg_query/include/postgres/rewrite/rewriteManip.h +96 -0
- data/ext/pg_query/include/postgres/rewrite/rewriteSupport.h +26 -0
- data/ext/pg_query/include/postgres/storage/block.h +108 -0
- data/ext/pg_query/include/postgres/storage/buf.h +46 -0
- data/ext/pg_query/include/postgres/storage/bufmgr.h +411 -0
- data/ext/pg_query/include/postgres/storage/bufpage.h +510 -0
- data/ext/pg_query/include/postgres/storage/condition_variable.h +73 -0
- data/ext/pg_query/include/postgres/storage/dsm.h +61 -0
- data/ext/pg_query/include/postgres/storage/dsm_impl.h +79 -0
- data/ext/pg_query/include/postgres/storage/fd.h +219 -0
- data/ext/pg_query/include/postgres/storage/fileset.h +40 -0
- data/ext/pg_query/include/postgres/storage/ipc.h +87 -0
- data/ext/pg_query/include/postgres/storage/item.h +19 -0
- data/ext/pg_query/include/postgres/storage/itemid.h +184 -0
- data/ext/pg_query/include/postgres/storage/itemptr.h +245 -0
- data/ext/pg_query/include/postgres/storage/large_object.h +100 -0
- data/ext/pg_query/include/postgres/storage/latch.h +196 -0
- data/ext/pg_query/include/postgres/storage/lmgr.h +126 -0
- data/ext/pg_query/include/postgres/storage/lock.h +624 -0
- data/ext/pg_query/include/postgres/storage/lockdefs.h +61 -0
- data/ext/pg_query/include/postgres/storage/lwlock.h +228 -0
- data/ext/pg_query/include/postgres/storage/lwlocknames.h +47 -0
- data/ext/pg_query/include/postgres/storage/off.h +57 -0
- data/ext/pg_query/include/postgres/storage/pg_sema.h +61 -0
- data/ext/pg_query/include/postgres/storage/pg_shmem.h +93 -0
- data/ext/pg_query/include/postgres/storage/pmsignal.h +105 -0
- data/ext/pg_query/include/postgres/storage/predicate.h +83 -0
- data/ext/pg_query/include/postgres/storage/proc.h +488 -0
- data/ext/pg_query/include/postgres/storage/procarray.h +103 -0
- data/ext/pg_query/include/postgres/storage/proclist_types.h +53 -0
- data/ext/pg_query/include/postgres/storage/procnumber.h +43 -0
- data/ext/pg_query/include/postgres/storage/procsignal.h +75 -0
- data/ext/pg_query/include/postgres/storage/read_stream.h +65 -0
- data/ext/pg_query/include/postgres/storage/relfilelocator.h +100 -0
- data/ext/pg_query/include/postgres/storage/s_lock.h +847 -0
- data/ext/pg_query/include/postgres/storage/sharedfileset.h +37 -0
- data/ext/pg_query/include/postgres/storage/shm_mq.h +86 -0
- data/ext/pg_query/include/postgres/storage/shm_toc.h +58 -0
- data/ext/pg_query/include/postgres/storage/shmem.h +59 -0
- data/ext/pg_query/include/postgres/storage/sinval.h +153 -0
- data/ext/pg_query/include/postgres/storage/smgr.h +130 -0
- data/ext/pg_query/include/postgres/storage/spin.h +77 -0
- data/ext/pg_query/include/postgres/storage/standby.h +109 -0
- data/ext/pg_query/include/postgres/storage/standbydefs.h +74 -0
- data/ext/pg_query/include/postgres/storage/sync.h +66 -0
- data/ext/pg_query/include/postgres/tcop/cmdtag.h +62 -0
- data/ext/pg_query/include/postgres/tcop/cmdtaglist.h +219 -0
- data/ext/pg_query/include/postgres/tcop/deparse_utility.h +108 -0
- data/ext/pg_query/include/postgres/tcop/dest.h +148 -0
- data/ext/pg_query/include/postgres/tcop/fastpath.h +20 -0
- data/ext/pg_query/include/postgres/tcop/pquery.h +51 -0
- data/ext/pg_query/include/postgres/tcop/tcopprot.h +98 -0
- data/ext/pg_query/include/postgres/tcop/utility.h +112 -0
- data/ext/pg_query/include/postgres/tsearch/ts_cache.h +96 -0
- data/ext/pg_query/include/postgres/utils/acl.h +290 -0
- data/ext/pg_query/include/postgres/utils/aclchk_internal.h +45 -0
- data/ext/pg_query/include/postgres/utils/array.h +481 -0
- data/ext/pg_query/include/postgres/utils/ascii.h +84 -0
- data/ext/pg_query/include/postgres/utils/backend_progress.h +46 -0
- data/ext/pg_query/include/postgres/utils/backend_status.h +340 -0
- data/ext/pg_query/include/postgres/utils/builtins.h +139 -0
- data/ext/pg_query/include/postgres/utils/bytea.h +28 -0
- data/ext/pg_query/include/postgres/utils/catcache.h +231 -0
- data/ext/pg_query/include/postgres/utils/date.h +118 -0
- data/ext/pg_query/include/postgres/utils/datetime.h +367 -0
- data/ext/pg_query/include/postgres/utils/datum.h +76 -0
- data/ext/pg_query/include/postgres/utils/dsa.h +166 -0
- data/ext/pg_query/include/postgres/utils/elog.h +540 -0
- data/ext/pg_query/include/postgres/utils/errcodes.h +352 -0
- data/ext/pg_query/include/postgres/utils/expandeddatum.h +170 -0
- data/ext/pg_query/include/postgres/utils/expandedrecord.h +241 -0
- data/ext/pg_query/include/postgres/utils/float.h +357 -0
- data/ext/pg_query/include/postgres/utils/fmgroids.h +3347 -0
- data/ext/pg_query/include/postgres/utils/fmgrprotos.h +2904 -0
- data/ext/pg_query/include/postgres/utils/fmgrtab.h +49 -0
- data/ext/pg_query/include/postgres/utils/guc.h +456 -0
- data/ext/pg_query/include/postgres/utils/guc_hooks.h +184 -0
- data/ext/pg_query/include/postgres/utils/guc_tables.h +323 -0
- data/ext/pg_query/include/postgres/utils/hsearch.h +153 -0
- data/ext/pg_query/include/postgres/utils/injection_point.h +44 -0
- data/ext/pg_query/include/postgres/utils/inval.h +68 -0
- data/ext/pg_query/include/postgres/utils/logtape.h +77 -0
- data/ext/pg_query/include/postgres/utils/lsyscache.h +215 -0
- data/ext/pg_query/include/postgres/utils/memdebug.h +82 -0
- data/ext/pg_query/include/postgres/utils/memutils.h +193 -0
- data/ext/pg_query/include/postgres/utils/memutils_internal.h +176 -0
- data/ext/pg_query/include/postgres/utils/memutils_memorychunk.h +253 -0
- data/ext/pg_query/include/postgres/utils/numeric.h +110 -0
- data/ext/pg_query/include/postgres/utils/palloc.h +151 -0
- data/ext/pg_query/include/postgres/utils/partcache.h +103 -0
- data/ext/pg_query/include/postgres/utils/pg_locale.h +136 -0
- data/ext/pg_query/include/postgres/utils/pgstat_internal.h +827 -0
- data/ext/pg_query/include/postgres/utils/plancache.h +238 -0
- data/ext/pg_query/include/postgres/utils/portal.h +252 -0
- data/ext/pg_query/include/postgres/utils/probes.h +114 -0
- data/ext/pg_query/include/postgres/utils/ps_status.h +47 -0
- data/ext/pg_query/include/postgres/utils/queryenvironment.h +74 -0
- data/ext/pg_query/include/postgres/utils/regproc.h +39 -0
- data/ext/pg_query/include/postgres/utils/rel.h +711 -0
- data/ext/pg_query/include/postgres/utils/relcache.h +155 -0
- data/ext/pg_query/include/postgres/utils/reltrigger.h +81 -0
- data/ext/pg_query/include/postgres/utils/resowner.h +167 -0
- data/ext/pg_query/include/postgres/utils/ruleutils.h +52 -0
- data/ext/pg_query/include/postgres/utils/sharedtuplestore.h +61 -0
- data/ext/pg_query/include/postgres/utils/snapmgr.h +130 -0
- data/ext/pg_query/include/postgres/utils/snapshot.h +219 -0
- data/ext/pg_query/include/postgres/utils/sortsupport.h +391 -0
- data/ext/pg_query/include/postgres/utils/syscache.h +136 -0
- data/ext/pg_query/include/postgres/utils/timeout.h +96 -0
- data/ext/pg_query/include/postgres/utils/timestamp.h +147 -0
- data/ext/pg_query/include/postgres/utils/tuplesort.h +472 -0
- data/ext/pg_query/include/postgres/utils/tuplestore.h +88 -0
- data/ext/pg_query/include/postgres/utils/typcache.h +210 -0
- data/ext/pg_query/include/postgres/utils/varlena.h +53 -0
- data/ext/pg_query/include/postgres/utils/wait_event.h +108 -0
- data/ext/pg_query/include/postgres/utils/wait_event_types.h +218 -0
- data/ext/pg_query/include/postgres/utils/xml.h +94 -0
- data/ext/pg_query/include/postgres/varatt.h +358 -0
- data/ext/pg_query/include/protobuf/pg_query.pb-c.h +7723 -6368
- data/ext/pg_query/include/protobuf/pg_query.pb.h +120022 -87031
- data/ext/pg_query/pg_query.c +10 -1
- data/ext/pg_query/pg_query.pb-c.c +22595 -17738
- data/ext/pg_query/pg_query_deparse.c +1 -10635
- data/ext/pg_query/pg_query_fingerprint.c +12 -8
- data/ext/pg_query/pg_query_fingerprint.h +1 -1
- data/ext/pg_query/pg_query_internal.h +1 -1
- data/ext/pg_query/pg_query_json_plpgsql.c +1 -0
- data/ext/pg_query/pg_query_normalize.c +43 -2
- data/ext/pg_query/pg_query_outfuncs_json.c +9 -1
- data/ext/pg_query/pg_query_outfuncs_protobuf.c +3 -2
- data/ext/pg_query/pg_query_parse.c +47 -5
- data/ext/pg_query/pg_query_parse_plpgsql.c +19 -18
- data/ext/pg_query/pg_query_readfuncs_protobuf.c +3 -2
- data/ext/pg_query/pg_query_ruby.c +5 -0
- data/ext/pg_query/pg_query_scan.c +2 -2
- data/ext/pg_query/pg_query_split.c +3 -3
- data/ext/pg_query/postgres_deparse.c +11496 -0
- data/ext/pg_query/postgres_deparse.h +9 -0
- data/ext/pg_query/src_backend_catalog_namespace.c +243 -63
- data/ext/pg_query/src_backend_catalog_pg_proc.c +1 -3
- data/ext/pg_query/src_backend_commands_define.c +2 -3
- data/ext/pg_query/src_backend_nodes_bitmapset.c +140 -156
- data/ext/pg_query/src_backend_nodes_copyfuncs.c +96 -6202
- data/ext/pg_query/src_backend_nodes_equalfuncs.c +95 -4068
- data/ext/pg_query/src_backend_nodes_extensible.c +6 -29
- data/ext/pg_query/src_backend_nodes_list.c +16 -8
- data/ext/pg_query/src_backend_nodes_makefuncs.c +134 -1
- data/ext/pg_query/src_backend_nodes_nodeFuncs.c +391 -133
- data/ext/pg_query/src_backend_nodes_value.c +1 -1
- data/ext/pg_query/src_backend_parser_gram.c +43710 -39953
- data/ext/pg_query/src_backend_parser_parser.c +34 -8
- data/ext/pg_query/src_backend_parser_scan.c +6971 -3373
- data/ext/pg_query/src_backend_parser_scansup.c +2 -1
- data/ext/pg_query/src_backend_storage_ipc_ipc.c +1 -1
- data/ext/pg_query/src_backend_tcop_postgres.c +99 -96
- data/ext/pg_query/src_backend_utils_activity_pgstat_database.c +2 -2
- data/ext/pg_query/src_backend_utils_adt_datum.c +2 -2
- data/ext/pg_query/src_backend_utils_adt_expandeddatum.c +1 -1
- data/ext/pg_query/src_backend_utils_adt_format_type.c +1 -1
- data/ext/pg_query/src_backend_utils_adt_numutils.c +488 -0
- data/ext/pg_query/src_backend_utils_adt_ruleutils.c +177 -30
- data/ext/pg_query/src_backend_utils_error_assert.c +4 -7
- data/ext/pg_query/src_backend_utils_error_elog.c +397 -270
- data/ext/pg_query/src_backend_utils_fmgr_fmgr.c +36 -2
- data/ext/pg_query/src_backend_utils_init_globals.c +20 -5
- data/ext/pg_query/src_backend_utils_mb_mbutils.c +31 -84
- data/ext/pg_query/src_backend_utils_misc_guc_tables.c +502 -0
- data/ext/pg_query/src_backend_utils_mmgr_alignedalloc.c +166 -0
- data/ext/pg_query/src_backend_utils_mmgr_aset.c +704 -497
- data/ext/pg_query/src_backend_utils_mmgr_bump.c +728 -0
- data/ext/pg_query/src_backend_utils_mmgr_generation.c +1115 -0
- data/ext/pg_query/src_backend_utils_mmgr_mcxt.c +637 -233
- data/ext/pg_query/src_backend_utils_mmgr_slab.c +1079 -0
- data/ext/pg_query/src_common_encnames.c +46 -44
- data/ext/pg_query/src_common_hashfn.c +1 -1
- data/ext/pg_query/src_common_keywords.c +1 -1
- data/ext/pg_query/src_common_kwlist_d.h +586 -517
- data/ext/pg_query/src_common_kwlookup.c +1 -1
- data/ext/pg_query/src_common_psprintf.c +3 -3
- data/ext/pg_query/src_common_stringinfo.c +21 -4
- data/ext/pg_query/src_common_wchar.c +100 -116
- data/ext/pg_query/src_pl_plpgsql_src_pl_comp.c +99 -5
- data/ext/pg_query/src_pl_plpgsql_src_pl_funcs.c +3 -1
- data/ext/pg_query/src_pl_plpgsql_src_pl_gram.c +829 -763
- data/ext/pg_query/src_pl_plpgsql_src_pl_handler.c +1 -1
- data/ext/pg_query/src_pl_plpgsql_src_pl_reserved_kwlist_d.h +1 -1
- data/ext/pg_query/src_pl_plpgsql_src_pl_scanner.c +19 -1
- data/ext/pg_query/src_pl_plpgsql_src_pl_unreserved_kwlist_d.h +48 -46
- data/ext/pg_query/src_port_pg_bitutils.c +251 -32
- data/ext/pg_query/src_port_pgstrcasecmp.c +57 -1
- data/ext/pg_query/src_port_snprintf.c +20 -27
- data/ext/pg_query/src_port_strerror.c +1 -3
- data/ext/pg_query/src_port_strlcpy.c +79 -0
- data/lib/pg_query/fingerprint.rb +5 -8
- data/lib/pg_query/node.rb +16 -11
- data/lib/pg_query/param_refs.rb +2 -2
- data/lib/pg_query/parse.rb +6 -8
- data/lib/pg_query/parse_error.rb +1 -0
- data/lib/pg_query/pg_query_pb.rb +173 -3196
- data/lib/pg_query/scan.rb +1 -0
- data/lib/pg_query/treewalker.rb +52 -11
- data/lib/pg_query/truncate.rb +18 -20
- data/lib/pg_query/version.rb +1 -1
- metadata +443 -442
- data/ext/pg_query/guc-file.c +0 -0
- data/ext/pg_query/include/access/amapi.h +0 -290
- data/ext/pg_query/include/access/attmap.h +0 -52
- data/ext/pg_query/include/access/attnum.h +0 -64
- data/ext/pg_query/include/access/clog.h +0 -63
- data/ext/pg_query/include/access/commit_ts.h +0 -74
- data/ext/pg_query/include/access/detoast.h +0 -82
- data/ext/pg_query/include/access/genam.h +0 -231
- data/ext/pg_query/include/access/gin.h +0 -78
- data/ext/pg_query/include/access/htup.h +0 -89
- data/ext/pg_query/include/access/htup_details.h +0 -807
- data/ext/pg_query/include/access/itup.h +0 -167
- data/ext/pg_query/include/access/parallel.h +0 -82
- data/ext/pg_query/include/access/printtup.h +0 -35
- data/ext/pg_query/include/access/relation.h +0 -28
- data/ext/pg_query/include/access/relscan.h +0 -191
- data/ext/pg_query/include/access/rmgrlist.h +0 -49
- data/ext/pg_query/include/access/sdir.h +0 -58
- data/ext/pg_query/include/access/skey.h +0 -151
- data/ext/pg_query/include/access/stratnum.h +0 -85
- data/ext/pg_query/include/access/sysattr.h +0 -29
- data/ext/pg_query/include/access/table.h +0 -28
- data/ext/pg_query/include/access/tableam.h +0 -2077
- data/ext/pg_query/include/access/toast_compression.h +0 -73
- data/ext/pg_query/include/access/transam.h +0 -375
- data/ext/pg_query/include/access/tupconvert.h +0 -51
- data/ext/pg_query/include/access/tupdesc.h +0 -154
- data/ext/pg_query/include/access/tupmacs.h +0 -247
- data/ext/pg_query/include/access/twophase.h +0 -65
- data/ext/pg_query/include/access/xact.h +0 -523
- data/ext/pg_query/include/access/xlog.h +0 -303
- data/ext/pg_query/include/access/xlog_internal.h +0 -366
- data/ext/pg_query/include/access/xlogdefs.h +0 -101
- data/ext/pg_query/include/access/xlogprefetcher.h +0 -55
- data/ext/pg_query/include/access/xlogreader.h +0 -443
- data/ext/pg_query/include/access/xlogrecord.h +0 -236
- data/ext/pg_query/include/access/xlogrecovery.h +0 -157
- data/ext/pg_query/include/c.h +0 -1391
- data/ext/pg_query/include/catalog/catalog.h +0 -44
- data/ext/pg_query/include/catalog/catversion.h +0 -58
- data/ext/pg_query/include/catalog/dependency.h +0 -269
- data/ext/pg_query/include/catalog/genbki.h +0 -142
- data/ext/pg_query/include/catalog/index.h +0 -214
- data/ext/pg_query/include/catalog/indexing.h +0 -54
- data/ext/pg_query/include/catalog/namespace.h +0 -190
- data/ext/pg_query/include/catalog/objectaccess.h +0 -265
- data/ext/pg_query/include/catalog/objectaddress.h +0 -89
- data/ext/pg_query/include/catalog/pg_aggregate.h +0 -180
- data/ext/pg_query/include/catalog/pg_aggregate_d.h +0 -78
- data/ext/pg_query/include/catalog/pg_am.h +0 -63
- data/ext/pg_query/include/catalog/pg_am_d.h +0 -47
- data/ext/pg_query/include/catalog/pg_attribute.h +0 -221
- data/ext/pg_query/include/catalog/pg_attribute_d.h +0 -62
- data/ext/pg_query/include/catalog/pg_authid.h +0 -63
- data/ext/pg_query/include/catalog/pg_authid_d.h +0 -57
- data/ext/pg_query/include/catalog/pg_class.h +0 -230
- data/ext/pg_query/include/catalog/pg_class_d.h +0 -132
- data/ext/pg_query/include/catalog/pg_collation.h +0 -98
- data/ext/pg_query/include/catalog/pg_collation_d.h +0 -62
- data/ext/pg_query/include/catalog/pg_constraint.h +0 -273
- data/ext/pg_query/include/catalog/pg_constraint_d.h +0 -73
- data/ext/pg_query/include/catalog/pg_control.h +0 -250
- data/ext/pg_query/include/catalog/pg_conversion.h +0 -75
- data/ext/pg_query/include/catalog/pg_conversion_d.h +0 -38
- data/ext/pg_query/include/catalog/pg_depend.h +0 -77
- data/ext/pg_query/include/catalog/pg_depend_d.h +0 -36
- data/ext/pg_query/include/catalog/pg_event_trigger.h +0 -57
- data/ext/pg_query/include/catalog/pg_event_trigger_d.h +0 -36
- data/ext/pg_query/include/catalog/pg_index.h +0 -90
- data/ext/pg_query/include/catalog/pg_index_d.h +0 -59
- data/ext/pg_query/include/catalog/pg_language.h +0 -72
- data/ext/pg_query/include/catalog/pg_language_d.h +0 -41
- data/ext/pg_query/include/catalog/pg_namespace.h +0 -64
- data/ext/pg_query/include/catalog/pg_namespace_d.h +0 -36
- data/ext/pg_query/include/catalog/pg_opclass.h +0 -88
- data/ext/pg_query/include/catalog/pg_opclass_d.h +0 -51
- data/ext/pg_query/include/catalog/pg_operator.h +0 -107
- data/ext/pg_query/include/catalog/pg_operator_d.h +0 -142
- data/ext/pg_query/include/catalog/pg_opfamily.h +0 -63
- data/ext/pg_query/include/catalog/pg_opfamily_d.h +0 -49
- data/ext/pg_query/include/catalog/pg_parameter_acl.h +0 -60
- data/ext/pg_query/include/catalog/pg_parameter_acl_d.h +0 -34
- data/ext/pg_query/include/catalog/pg_partitioned_table.h +0 -74
- data/ext/pg_query/include/catalog/pg_partitioned_table_d.h +0 -36
- data/ext/pg_query/include/catalog/pg_proc.h +0 -220
- data/ext/pg_query/include/catalog/pg_proc_d.h +0 -101
- data/ext/pg_query/include/catalog/pg_publication.h +0 -161
- data/ext/pg_query/include/catalog/pg_publication_d.h +0 -38
- data/ext/pg_query/include/catalog/pg_replication_origin.h +0 -62
- data/ext/pg_query/include/catalog/pg_replication_origin_d.h +0 -33
- data/ext/pg_query/include/catalog/pg_statistic.h +0 -282
- data/ext/pg_query/include/catalog/pg_statistic_d.h +0 -195
- data/ext/pg_query/include/catalog/pg_statistic_ext.h +0 -88
- data/ext/pg_query/include/catalog/pg_statistic_ext_d.h +0 -45
- data/ext/pg_query/include/catalog/pg_transform.h +0 -48
- data/ext/pg_query/include/catalog/pg_transform_d.h +0 -34
- data/ext/pg_query/include/catalog/pg_trigger.h +0 -153
- data/ext/pg_query/include/catalog/pg_trigger_d.h +0 -109
- data/ext/pg_query/include/catalog/pg_ts_config.h +0 -53
- data/ext/pg_query/include/catalog/pg_ts_config_d.h +0 -34
- data/ext/pg_query/include/catalog/pg_ts_dict.h +0 -59
- data/ext/pg_query/include/catalog/pg_ts_dict_d.h +0 -35
- data/ext/pg_query/include/catalog/pg_ts_parser.h +0 -60
- data/ext/pg_query/include/catalog/pg_ts_parser_d.h +0 -37
- data/ext/pg_query/include/catalog/pg_ts_template.h +0 -51
- data/ext/pg_query/include/catalog/pg_ts_template_d.h +0 -34
- data/ext/pg_query/include/catalog/pg_type.h +0 -404
- data/ext/pg_query/include/catalog/pg_type_d.h +0 -324
- data/ext/pg_query/include/catalog/storage.h +0 -50
- data/ext/pg_query/include/commands/async.h +0 -53
- data/ext/pg_query/include/commands/dbcommands.h +0 -36
- data/ext/pg_query/include/commands/defrem.h +0 -160
- data/ext/pg_query/include/commands/event_trigger.h +0 -88
- data/ext/pg_query/include/commands/explain.h +0 -127
- data/ext/pg_query/include/commands/prepare.h +0 -61
- data/ext/pg_query/include/commands/tablespace.h +0 -69
- data/ext/pg_query/include/commands/trigger.h +0 -287
- data/ext/pg_query/include/commands/user.h +0 -37
- data/ext/pg_query/include/commands/vacuum.h +0 -340
- data/ext/pg_query/include/commands/variable.h +0 -38
- data/ext/pg_query/include/common/file_perm.h +0 -56
- data/ext/pg_query/include/common/hashfn.h +0 -104
- data/ext/pg_query/include/common/ip.h +0 -31
- data/ext/pg_query/include/common/keywords.h +0 -29
- data/ext/pg_query/include/common/kwlookup.h +0 -44
- data/ext/pg_query/include/common/pg_prng.h +0 -60
- data/ext/pg_query/include/common/relpath.h +0 -90
- data/ext/pg_query/include/common/string.h +0 -42
- data/ext/pg_query/include/common/unicode_combining_table.h +0 -308
- data/ext/pg_query/include/common/unicode_east_asian_fw_table.h +0 -125
- data/ext/pg_query/include/datatype/timestamp.h +0 -236
- data/ext/pg_query/include/executor/execdesc.h +0 -70
- data/ext/pg_query/include/executor/executor.h +0 -663
- data/ext/pg_query/include/executor/functions.h +0 -55
- data/ext/pg_query/include/executor/instrument.h +0 -118
- data/ext/pg_query/include/executor/spi.h +0 -213
- data/ext/pg_query/include/executor/tablefunc.h +0 -67
- data/ext/pg_query/include/executor/tuptable.h +0 -487
- data/ext/pg_query/include/fmgr.h +0 -781
- data/ext/pg_query/include/funcapi.h +0 -360
- data/ext/pg_query/include/getaddrinfo.h +0 -162
- data/ext/pg_query/include/jit/jit.h +0 -105
- data/ext/pg_query/include/kwlist_d.h +0 -1095
- data/ext/pg_query/include/lib/dshash.h +0 -112
- data/ext/pg_query/include/lib/ilist.h +0 -746
- data/ext/pg_query/include/lib/pairingheap.h +0 -102
- data/ext/pg_query/include/lib/simplehash.h +0 -1184
- data/ext/pg_query/include/lib/sort_template.h +0 -432
- data/ext/pg_query/include/lib/stringinfo.h +0 -161
- data/ext/pg_query/include/libpq/auth.h +0 -31
- data/ext/pg_query/include/libpq/crypt.h +0 -47
- data/ext/pg_query/include/libpq/hba.h +0 -179
- data/ext/pg_query/include/libpq/libpq-be.h +0 -343
- data/ext/pg_query/include/libpq/libpq.h +0 -144
- data/ext/pg_query/include/libpq/pqcomm.h +0 -194
- data/ext/pg_query/include/libpq/pqformat.h +0 -210
- data/ext/pg_query/include/libpq/pqsignal.h +0 -42
- data/ext/pg_query/include/mb/pg_wchar.h +0 -755
- data/ext/pg_query/include/mb/stringinfo_mb.h +0 -24
- data/ext/pg_query/include/miscadmin.h +0 -495
- data/ext/pg_query/include/nodes/bitmapset.h +0 -122
- data/ext/pg_query/include/nodes/execnodes.h +0 -2715
- data/ext/pg_query/include/nodes/extensible.h +0 -162
- data/ext/pg_query/include/nodes/lockoptions.h +0 -61
- data/ext/pg_query/include/nodes/makefuncs.h +0 -109
- data/ext/pg_query/include/nodes/memnodes.h +0 -110
- data/ext/pg_query/include/nodes/nodeFuncs.h +0 -162
- data/ext/pg_query/include/nodes/nodes.h +0 -861
- data/ext/pg_query/include/nodes/params.h +0 -170
- data/ext/pg_query/include/nodes/parsenodes.h +0 -3812
- data/ext/pg_query/include/nodes/pathnodes.h +0 -2734
- data/ext/pg_query/include/nodes/pg_list.h +0 -612
- data/ext/pg_query/include/nodes/plannodes.h +0 -1349
- data/ext/pg_query/include/nodes/primnodes.h +0 -1593
- data/ext/pg_query/include/nodes/print.h +0 -34
- data/ext/pg_query/include/nodes/tidbitmap.h +0 -75
- data/ext/pg_query/include/nodes/value.h +0 -80
- data/ext/pg_query/include/optimizer/cost.h +0 -213
- data/ext/pg_query/include/optimizer/geqo.h +0 -90
- data/ext/pg_query/include/optimizer/geqo_gene.h +0 -45
- data/ext/pg_query/include/optimizer/optimizer.h +0 -202
- data/ext/pg_query/include/optimizer/paths.h +0 -257
- data/ext/pg_query/include/optimizer/planmain.h +0 -120
- data/ext/pg_query/include/parser/analyze.h +0 -63
- data/ext/pg_query/include/parser/gram.h +0 -1101
- data/ext/pg_query/include/parser/gramparse.h +0 -75
- data/ext/pg_query/include/parser/kwlist.h +0 -487
- data/ext/pg_query/include/parser/parse_agg.h +0 -63
- data/ext/pg_query/include/parser/parse_coerce.h +0 -100
- data/ext/pg_query/include/parser/parse_expr.h +0 -25
- data/ext/pg_query/include/parser/parse_func.h +0 -74
- data/ext/pg_query/include/parser/parse_node.h +0 -339
- data/ext/pg_query/include/parser/parse_oper.h +0 -65
- data/ext/pg_query/include/parser/parse_relation.h +0 -124
- data/ext/pg_query/include/parser/parse_type.h +0 -60
- data/ext/pg_query/include/parser/parser.h +0 -68
- data/ext/pg_query/include/parser/parsetree.h +0 -61
- data/ext/pg_query/include/parser/scanner.h +0 -152
- data/ext/pg_query/include/parser/scansup.h +0 -27
- data/ext/pg_query/include/partitioning/partdefs.h +0 -26
- data/ext/pg_query/include/pg_config.h +0 -1037
- data/ext/pg_query/include/pg_config_manual.h +0 -410
- data/ext/pg_query/include/pg_config_os.h +0 -8
- data/ext/pg_query/include/pg_getopt.h +0 -56
- data/ext/pg_query/include/pg_trace.h +0 -17
- data/ext/pg_query/include/pgstat.h +0 -699
- data/ext/pg_query/include/pgtime.h +0 -94
- data/ext/pg_query/include/pl_gram.h +0 -383
- data/ext/pg_query/include/pl_reserved_kwlist.h +0 -52
- data/ext/pg_query/include/pl_reserved_kwlist_d.h +0 -114
- data/ext/pg_query/include/pl_unreserved_kwlist.h +0 -111
- data/ext/pg_query/include/pl_unreserved_kwlist_d.h +0 -244
- data/ext/pg_query/include/plerrcodes.h +0 -998
- data/ext/pg_query/include/plpgsql.h +0 -1345
- data/ext/pg_query/include/port/atomics/arch-arm.h +0 -32
- data/ext/pg_query/include/port/atomics/arch-ppc.h +0 -254
- data/ext/pg_query/include/port/atomics/arch-x86.h +0 -252
- data/ext/pg_query/include/port/atomics/fallback.h +0 -170
- data/ext/pg_query/include/port/atomics/generic-gcc.h +0 -286
- data/ext/pg_query/include/port/atomics/generic.h +0 -401
- data/ext/pg_query/include/port/atomics.h +0 -524
- data/ext/pg_query/include/port/pg_bitutils.h +0 -302
- data/ext/pg_query/include/port/pg_bswap.h +0 -161
- data/ext/pg_query/include/port/pg_crc32c.h +0 -101
- data/ext/pg_query/include/port.h +0 -553
- data/ext/pg_query/include/portability/instr_time.h +0 -256
- data/ext/pg_query/include/postgres.h +0 -808
- data/ext/pg_query/include/postgres_ext.h +0 -74
- data/ext/pg_query/include/postmaster/autovacuum.h +0 -83
- data/ext/pg_query/include/postmaster/auxprocess.h +0 -20
- data/ext/pg_query/include/postmaster/bgworker.h +0 -162
- data/ext/pg_query/include/postmaster/bgworker_internals.h +0 -64
- data/ext/pg_query/include/postmaster/bgwriter.h +0 -45
- data/ext/pg_query/include/postmaster/fork_process.h +0 -17
- data/ext/pg_query/include/postmaster/interrupt.h +0 -32
- data/ext/pg_query/include/postmaster/pgarch.h +0 -73
- data/ext/pg_query/include/postmaster/postmaster.h +0 -78
- data/ext/pg_query/include/postmaster/startup.h +0 -39
- data/ext/pg_query/include/postmaster/syslogger.h +0 -103
- data/ext/pg_query/include/postmaster/walwriter.h +0 -21
- data/ext/pg_query/include/regex/regex.h +0 -186
- data/ext/pg_query/include/replication/logicallauncher.h +0 -29
- data/ext/pg_query/include/replication/logicalproto.h +0 -254
- data/ext/pg_query/include/replication/logicalworker.h +0 -19
- data/ext/pg_query/include/replication/origin.h +0 -73
- data/ext/pg_query/include/replication/reorderbuffer.h +0 -685
- data/ext/pg_query/include/replication/slot.h +0 -230
- data/ext/pg_query/include/replication/syncrep.h +0 -115
- data/ext/pg_query/include/replication/walreceiver.h +0 -472
- data/ext/pg_query/include/replication/walsender.h +0 -74
- data/ext/pg_query/include/rewrite/prs2lock.h +0 -46
- data/ext/pg_query/include/rewrite/rewriteHandler.h +0 -38
- data/ext/pg_query/include/rewrite/rewriteManip.h +0 -87
- data/ext/pg_query/include/rewrite/rewriteSupport.h +0 -26
- data/ext/pg_query/include/storage/backendid.h +0 -37
- data/ext/pg_query/include/storage/block.h +0 -115
- data/ext/pg_query/include/storage/buf.h +0 -46
- data/ext/pg_query/include/storage/bufmgr.h +0 -297
- data/ext/pg_query/include/storage/bufpage.h +0 -457
- data/ext/pg_query/include/storage/condition_variable.h +0 -73
- data/ext/pg_query/include/storage/dsm.h +0 -64
- data/ext/pg_query/include/storage/dsm_impl.h +0 -76
- data/ext/pg_query/include/storage/fd.h +0 -198
- data/ext/pg_query/include/storage/fileset.h +0 -40
- data/ext/pg_query/include/storage/ipc.h +0 -84
- data/ext/pg_query/include/storage/item.h +0 -19
- data/ext/pg_query/include/storage/itemid.h +0 -184
- data/ext/pg_query/include/storage/itemptr.h +0 -208
- data/ext/pg_query/include/storage/large_object.h +0 -100
- data/ext/pg_query/include/storage/latch.h +0 -186
- data/ext/pg_query/include/storage/lmgr.h +0 -115
- data/ext/pg_query/include/storage/lock.h +0 -616
- data/ext/pg_query/include/storage/lockdefs.h +0 -59
- data/ext/pg_query/include/storage/lwlock.h +0 -206
- data/ext/pg_query/include/storage/lwlocknames.h +0 -50
- data/ext/pg_query/include/storage/off.h +0 -57
- data/ext/pg_query/include/storage/pg_sema.h +0 -61
- data/ext/pg_query/include/storage/pg_shmem.h +0 -92
- data/ext/pg_query/include/storage/pmsignal.h +0 -105
- data/ext/pg_query/include/storage/predicate.h +0 -87
- data/ext/pg_query/include/storage/proc.h +0 -461
- data/ext/pg_query/include/storage/procarray.h +0 -98
- data/ext/pg_query/include/storage/proclist_types.h +0 -51
- data/ext/pg_query/include/storage/procsignal.h +0 -71
- data/ext/pg_query/include/storage/relfilenode.h +0 -99
- data/ext/pg_query/include/storage/s_lock.h +0 -1110
- data/ext/pg_query/include/storage/sharedfileset.h +0 -37
- data/ext/pg_query/include/storage/shm_mq.h +0 -86
- data/ext/pg_query/include/storage/shm_toc.h +0 -58
- data/ext/pg_query/include/storage/shmem.h +0 -81
- data/ext/pg_query/include/storage/sinval.h +0 -153
- data/ext/pg_query/include/storage/sinvaladt.h +0 -43
- data/ext/pg_query/include/storage/smgr.h +0 -111
- data/ext/pg_query/include/storage/spin.h +0 -77
- data/ext/pg_query/include/storage/standby.h +0 -98
- data/ext/pg_query/include/storage/standbydefs.h +0 -74
- data/ext/pg_query/include/storage/sync.h +0 -66
- data/ext/pg_query/include/tcop/cmdtag.h +0 -58
- data/ext/pg_query/include/tcop/cmdtaglist.h +0 -218
- data/ext/pg_query/include/tcop/deparse_utility.h +0 -108
- data/ext/pg_query/include/tcop/dest.h +0 -149
- data/ext/pg_query/include/tcop/fastpath.h +0 -20
- data/ext/pg_query/include/tcop/pquery.h +0 -51
- data/ext/pg_query/include/tcop/tcopprot.h +0 -97
- data/ext/pg_query/include/tcop/utility.h +0 -112
- data/ext/pg_query/include/tsearch/ts_cache.h +0 -98
- data/ext/pg_query/include/utils/acl.h +0 -333
- data/ext/pg_query/include/utils/aclchk_internal.h +0 -45
- data/ext/pg_query/include/utils/array.h +0 -464
- data/ext/pg_query/include/utils/backend_progress.h +0 -44
- data/ext/pg_query/include/utils/backend_status.h +0 -321
- data/ext/pg_query/include/utils/builtins.h +0 -127
- data/ext/pg_query/include/utils/bytea.h +0 -28
- data/ext/pg_query/include/utils/catcache.h +0 -231
- data/ext/pg_query/include/utils/date.h +0 -90
- data/ext/pg_query/include/utils/datetime.h +0 -344
- data/ext/pg_query/include/utils/datum.h +0 -76
- data/ext/pg_query/include/utils/dsa.h +0 -123
- data/ext/pg_query/include/utils/dynahash.h +0 -20
- data/ext/pg_query/include/utils/elog.h +0 -470
- data/ext/pg_query/include/utils/errcodes.h +0 -354
- data/ext/pg_query/include/utils/expandeddatum.h +0 -159
- data/ext/pg_query/include/utils/expandedrecord.h +0 -231
- data/ext/pg_query/include/utils/float.h +0 -356
- data/ext/pg_query/include/utils/fmgroids.h +0 -3261
- data/ext/pg_query/include/utils/fmgrprotos.h +0 -2829
- data/ext/pg_query/include/utils/fmgrtab.h +0 -49
- data/ext/pg_query/include/utils/guc.h +0 -469
- data/ext/pg_query/include/utils/guc_tables.h +0 -276
- data/ext/pg_query/include/utils/hsearch.h +0 -153
- data/ext/pg_query/include/utils/inval.h +0 -68
- data/ext/pg_query/include/utils/lsyscache.h +0 -208
- data/ext/pg_query/include/utils/memdebug.h +0 -82
- data/ext/pg_query/include/utils/memutils.h +0 -230
- data/ext/pg_query/include/utils/numeric.h +0 -90
- data/ext/pg_query/include/utils/palloc.h +0 -158
- data/ext/pg_query/include/utils/partcache.h +0 -102
- data/ext/pg_query/include/utils/pg_locale.h +0 -127
- data/ext/pg_query/include/utils/pg_lsn.h +0 -29
- data/ext/pg_query/include/utils/pgstat_internal.h +0 -784
- data/ext/pg_query/include/utils/pidfile.h +0 -56
- data/ext/pg_query/include/utils/plancache.h +0 -236
- data/ext/pg_query/include/utils/portal.h +0 -252
- data/ext/pg_query/include/utils/probes.h +0 -114
- data/ext/pg_query/include/utils/ps_status.h +0 -25
- data/ext/pg_query/include/utils/queryenvironment.h +0 -74
- data/ext/pg_query/include/utils/queryjumble.h +0 -88
- data/ext/pg_query/include/utils/regproc.h +0 -39
- data/ext/pg_query/include/utils/rel.h +0 -695
- data/ext/pg_query/include/utils/relcache.h +0 -153
- data/ext/pg_query/include/utils/reltrigger.h +0 -81
- data/ext/pg_query/include/utils/resowner.h +0 -86
- data/ext/pg_query/include/utils/rls.h +0 -50
- data/ext/pg_query/include/utils/ruleutils.h +0 -47
- data/ext/pg_query/include/utils/sharedtuplestore.h +0 -61
- data/ext/pg_query/include/utils/snapmgr.h +0 -179
- data/ext/pg_query/include/utils/snapshot.h +0 -219
- data/ext/pg_query/include/utils/sortsupport.h +0 -391
- data/ext/pg_query/include/utils/syscache.h +0 -224
- data/ext/pg_query/include/utils/timeout.h +0 -95
- data/ext/pg_query/include/utils/timestamp.h +0 -117
- data/ext/pg_query/include/utils/tuplesort.h +0 -291
- data/ext/pg_query/include/utils/tuplestore.h +0 -91
- data/ext/pg_query/include/utils/typcache.h +0 -209
- data/ext/pg_query/include/utils/tzparser.h +0 -39
- data/ext/pg_query/include/utils/varlena.h +0 -41
- data/ext/pg_query/include/utils/wait_event.h +0 -289
- data/ext/pg_query/include/utils/xml.h +0 -84
- data/ext/pg_query/src_backend_postmaster_postmaster.c +0 -2201
- data/ext/pg_query/src_backend_storage_lmgr_s_lock.c +0 -371
- data/ext/pg_query/src_backend_utils_hash_dynahash.c +0 -1116
- data/ext/pg_query/src_backend_utils_misc_guc.c +0 -1993
- data/ext/pg_query/src_common_pg_prng.c +0 -152
- data/ext/pg_query/src_common_string.c +0 -92
- data/ext/pg_query/src_port_pgsleep.c +0 -69
- data/ext/pg_query/src_port_strnlen.c +0 -39
- /data/ext/pg_query/{pg_query_ruby.sym → ext_symbols.sym} +0 -0
- /data/ext/pg_query/include/{access → postgres/access}/rmgr.h +0 -0
- /data/ext/pg_query/include/{pg_config_ext.h → postgres/pg_config_ext.h} +0 -0
@@ -3,11 +3,14 @@
|
|
3
3
|
static void _outAlias(OUT_TYPE(Alias, Alias) out_node, const Alias *node);
|
4
4
|
static void _outRangeVar(OUT_TYPE(RangeVar, RangeVar) out_node, const RangeVar *node);
|
5
5
|
static void _outTableFunc(OUT_TYPE(TableFunc, TableFunc) out_node, const TableFunc *node);
|
6
|
+
static void _outIntoClause(OUT_TYPE(IntoClause, IntoClause) out_node, const IntoClause *node);
|
6
7
|
static void _outVar(OUT_TYPE(Var, Var) out_node, const Var *node);
|
7
8
|
static void _outParam(OUT_TYPE(Param, Param) out_node, const Param *node);
|
8
9
|
static void _outAggref(OUT_TYPE(Aggref, Aggref) out_node, const Aggref *node);
|
9
10
|
static void _outGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) out_node, const GroupingFunc *node);
|
10
11
|
static void _outWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) out_node, const WindowFunc *node);
|
12
|
+
static void _outWindowFuncRunCondition(OUT_TYPE(WindowFuncRunCondition, WindowFuncRunCondition) out_node, const WindowFuncRunCondition *node);
|
13
|
+
static void _outMergeSupportFunc(OUT_TYPE(MergeSupportFunc, MergeSupportFunc) out_node, const MergeSupportFunc *node);
|
11
14
|
static void _outSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) out_node, const SubscriptingRef *node);
|
12
15
|
static void _outFuncExpr(OUT_TYPE(FuncExpr, FuncExpr) out_node, const FuncExpr *node);
|
13
16
|
static void _outNamedArgExpr(OUT_TYPE(NamedArgExpr, NamedArgExpr) out_node, const NamedArgExpr *node);
|
@@ -36,8 +39,19 @@ static void _outCoalesceExpr(OUT_TYPE(CoalesceExpr, CoalesceExpr) out_node, cons
|
|
36
39
|
static void _outMinMaxExpr(OUT_TYPE(MinMaxExpr, MinMaxExpr) out_node, const MinMaxExpr *node);
|
37
40
|
static void _outSQLValueFunction(OUT_TYPE(SQLValueFunction, SQLValueFunction) out_node, const SQLValueFunction *node);
|
38
41
|
static void _outXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) out_node, const XmlExpr *node);
|
42
|
+
static void _outJsonFormat(OUT_TYPE(JsonFormat, JsonFormat) out_node, const JsonFormat *node);
|
43
|
+
static void _outJsonReturning(OUT_TYPE(JsonReturning, JsonReturning) out_node, const JsonReturning *node);
|
44
|
+
static void _outJsonValueExpr(OUT_TYPE(JsonValueExpr, JsonValueExpr) out_node, const JsonValueExpr *node);
|
45
|
+
static void _outJsonConstructorExpr(OUT_TYPE(JsonConstructorExpr, JsonConstructorExpr) out_node, const JsonConstructorExpr *node);
|
46
|
+
static void _outJsonIsPredicate(OUT_TYPE(JsonIsPredicate, JsonIsPredicate) out_node, const JsonIsPredicate *node);
|
47
|
+
static void _outJsonBehavior(OUT_TYPE(JsonBehavior, JsonBehavior) out_node, const JsonBehavior *node);
|
48
|
+
static void _outJsonExpr(OUT_TYPE(JsonExpr, JsonExpr) out_node, const JsonExpr *node);
|
49
|
+
static void _outJsonTablePath(OUT_TYPE(JsonTablePath, JsonTablePath) out_node, const JsonTablePath *node);
|
50
|
+
static void _outJsonTablePathScan(OUT_TYPE(JsonTablePathScan, JsonTablePathScan) out_node, const JsonTablePathScan *node);
|
51
|
+
static void _outJsonTableSiblingJoin(OUT_TYPE(JsonTableSiblingJoin, JsonTableSiblingJoin) out_node, const JsonTableSiblingJoin *node);
|
39
52
|
static void _outNullTest(OUT_TYPE(NullTest, NullTest) out_node, const NullTest *node);
|
40
53
|
static void _outBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) out_node, const BooleanTest *node);
|
54
|
+
static void _outMergeAction(OUT_TYPE(MergeAction, MergeAction) out_node, const MergeAction *node);
|
41
55
|
static void _outCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) out_node, const CoerceToDomain *node);
|
42
56
|
static void _outCoerceToDomainValue(OUT_TYPE(CoerceToDomainValue, CoerceToDomainValue) out_node, const CoerceToDomainValue *node);
|
43
57
|
static void _outSetToDefault(OUT_TYPE(SetToDefault, SetToDefault) out_node, const SetToDefault *node);
|
@@ -49,186 +63,202 @@ static void _outRangeTblRef(OUT_TYPE(RangeTblRef, RangeTblRef) out_node, const R
|
|
49
63
|
static void _outJoinExpr(OUT_TYPE(JoinExpr, JoinExpr) out_node, const JoinExpr *node);
|
50
64
|
static void _outFromExpr(OUT_TYPE(FromExpr, FromExpr) out_node, const FromExpr *node);
|
51
65
|
static void _outOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) out_node, const OnConflictExpr *node);
|
52
|
-
static void _outIntoClause(OUT_TYPE(IntoClause, IntoClause) out_node, const IntoClause *node);
|
53
|
-
static void _outMergeAction(OUT_TYPE(MergeAction, MergeAction) out_node, const MergeAction *node);
|
54
|
-
static void _outRawStmt(OUT_TYPE(RawStmt, RawStmt) out_node, const RawStmt *node);
|
55
66
|
static void _outQuery(OUT_TYPE(Query, Query) out_node, const Query *node);
|
67
|
+
static void _outTypeName(OUT_TYPE(TypeName, TypeName) out_node, const TypeName *node);
|
68
|
+
static void _outColumnRef(OUT_TYPE(ColumnRef, ColumnRef) out_node, const ColumnRef *node);
|
69
|
+
static void _outParamRef(OUT_TYPE(ParamRef, ParamRef) out_node, const ParamRef *node);
|
70
|
+
static void _outAExpr(OUT_TYPE(A_Expr, AExpr) out_node, const A_Expr *node);
|
71
|
+
static void _outTypeCast(OUT_TYPE(TypeCast, TypeCast) out_node, const TypeCast *node);
|
72
|
+
static void _outCollateClause(OUT_TYPE(CollateClause, CollateClause) out_node, const CollateClause *node);
|
73
|
+
static void _outRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) out_node, const RoleSpec *node);
|
74
|
+
static void _outFuncCall(OUT_TYPE(FuncCall, FuncCall) out_node, const FuncCall *node);
|
75
|
+
static void _outAStar(OUT_TYPE(A_Star, AStar) out_node, const A_Star *node);
|
76
|
+
static void _outAIndices(OUT_TYPE(A_Indices, AIndices) out_node, const A_Indices *node);
|
77
|
+
static void _outAIndirection(OUT_TYPE(A_Indirection, AIndirection) out_node, const A_Indirection *node);
|
78
|
+
static void _outAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) out_node, const A_ArrayExpr *node);
|
79
|
+
static void _outResTarget(OUT_TYPE(ResTarget, ResTarget) out_node, const ResTarget *node);
|
80
|
+
static void _outMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) out_node, const MultiAssignRef *node);
|
81
|
+
static void _outSortBy(OUT_TYPE(SortBy, SortBy) out_node, const SortBy *node);
|
82
|
+
static void _outWindowDef(OUT_TYPE(WindowDef, WindowDef) out_node, const WindowDef *node);
|
83
|
+
static void _outRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) out_node, const RangeSubselect *node);
|
84
|
+
static void _outRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) out_node, const RangeFunction *node);
|
85
|
+
static void _outRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) out_node, const RangeTableFunc *node);
|
86
|
+
static void _outRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) out_node, const RangeTableFuncCol *node);
|
87
|
+
static void _outRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) out_node, const RangeTableSample *node);
|
88
|
+
static void _outColumnDef(OUT_TYPE(ColumnDef, ColumnDef) out_node, const ColumnDef *node);
|
89
|
+
static void _outTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) out_node, const TableLikeClause *node);
|
90
|
+
static void _outIndexElem(OUT_TYPE(IndexElem, IndexElem) out_node, const IndexElem *node);
|
91
|
+
static void _outDefElem(OUT_TYPE(DefElem, DefElem) out_node, const DefElem *node);
|
92
|
+
static void _outLockingClause(OUT_TYPE(LockingClause, LockingClause) out_node, const LockingClause *node);
|
93
|
+
static void _outXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) out_node, const XmlSerialize *node);
|
94
|
+
static void _outPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) out_node, const PartitionElem *node);
|
95
|
+
static void _outPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) out_node, const PartitionSpec *node);
|
96
|
+
static void _outPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) out_node, const PartitionBoundSpec *node);
|
97
|
+
static void _outPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) out_node, const PartitionRangeDatum *node);
|
98
|
+
static void _outSinglePartitionSpec(OUT_TYPE(SinglePartitionSpec, SinglePartitionSpec) out_node, const SinglePartitionSpec *node);
|
99
|
+
static void _outPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) out_node, const PartitionCmd *node);
|
100
|
+
static void _outRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) out_node, const RangeTblEntry *node);
|
101
|
+
static void _outRTEPermissionInfo(OUT_TYPE(RTEPermissionInfo, RTEPermissionInfo) out_node, const RTEPermissionInfo *node);
|
102
|
+
static void _outRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) out_node, const RangeTblFunction *node);
|
103
|
+
static void _outTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) out_node, const TableSampleClause *node);
|
104
|
+
static void _outWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) out_node, const WithCheckOption *node);
|
105
|
+
static void _outSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) out_node, const SortGroupClause *node);
|
106
|
+
static void _outGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) out_node, const GroupingSet *node);
|
107
|
+
static void _outWindowClause(OUT_TYPE(WindowClause, WindowClause) out_node, const WindowClause *node);
|
108
|
+
static void _outRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) out_node, const RowMarkClause *node);
|
109
|
+
static void _outWithClause(OUT_TYPE(WithClause, WithClause) out_node, const WithClause *node);
|
110
|
+
static void _outInferClause(OUT_TYPE(InferClause, InferClause) out_node, const InferClause *node);
|
111
|
+
static void _outOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) out_node, const OnConflictClause *node);
|
112
|
+
static void _outCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) out_node, const CTESearchClause *node);
|
113
|
+
static void _outCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) out_node, const CTECycleClause *node);
|
114
|
+
static void _outCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) out_node, const CommonTableExpr *node);
|
115
|
+
static void _outMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) out_node, const MergeWhenClause *node);
|
116
|
+
static void _outTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) out_node, const TriggerTransition *node);
|
117
|
+
static void _outJsonOutput(OUT_TYPE(JsonOutput, JsonOutput) out_node, const JsonOutput *node);
|
118
|
+
static void _outJsonArgument(OUT_TYPE(JsonArgument, JsonArgument) out_node, const JsonArgument *node);
|
119
|
+
static void _outJsonFuncExpr(OUT_TYPE(JsonFuncExpr, JsonFuncExpr) out_node, const JsonFuncExpr *node);
|
120
|
+
static void _outJsonTablePathSpec(OUT_TYPE(JsonTablePathSpec, JsonTablePathSpec) out_node, const JsonTablePathSpec *node);
|
121
|
+
static void _outJsonTable(OUT_TYPE(JsonTable, JsonTable) out_node, const JsonTable *node);
|
122
|
+
static void _outJsonTableColumn(OUT_TYPE(JsonTableColumn, JsonTableColumn) out_node, const JsonTableColumn *node);
|
123
|
+
static void _outJsonKeyValue(OUT_TYPE(JsonKeyValue, JsonKeyValue) out_node, const JsonKeyValue *node);
|
124
|
+
static void _outJsonParseExpr(OUT_TYPE(JsonParseExpr, JsonParseExpr) out_node, const JsonParseExpr *node);
|
125
|
+
static void _outJsonScalarExpr(OUT_TYPE(JsonScalarExpr, JsonScalarExpr) out_node, const JsonScalarExpr *node);
|
126
|
+
static void _outJsonSerializeExpr(OUT_TYPE(JsonSerializeExpr, JsonSerializeExpr) out_node, const JsonSerializeExpr *node);
|
127
|
+
static void _outJsonObjectConstructor(OUT_TYPE(JsonObjectConstructor, JsonObjectConstructor) out_node, const JsonObjectConstructor *node);
|
128
|
+
static void _outJsonArrayConstructor(OUT_TYPE(JsonArrayConstructor, JsonArrayConstructor) out_node, const JsonArrayConstructor *node);
|
129
|
+
static void _outJsonArrayQueryConstructor(OUT_TYPE(JsonArrayQueryConstructor, JsonArrayQueryConstructor) out_node, const JsonArrayQueryConstructor *node);
|
130
|
+
static void _outJsonAggConstructor(OUT_TYPE(JsonAggConstructor, JsonAggConstructor) out_node, const JsonAggConstructor *node);
|
131
|
+
static void _outJsonObjectAgg(OUT_TYPE(JsonObjectAgg, JsonObjectAgg) out_node, const JsonObjectAgg *node);
|
132
|
+
static void _outJsonArrayAgg(OUT_TYPE(JsonArrayAgg, JsonArrayAgg) out_node, const JsonArrayAgg *node);
|
133
|
+
static void _outRawStmt(OUT_TYPE(RawStmt, RawStmt) out_node, const RawStmt *node);
|
56
134
|
static void _outInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) out_node, const InsertStmt *node);
|
57
135
|
static void _outDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) out_node, const DeleteStmt *node);
|
58
136
|
static void _outUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) out_node, const UpdateStmt *node);
|
59
137
|
static void _outMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) out_node, const MergeStmt *node);
|
60
138
|
static void _outSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) out_node, const SelectStmt *node);
|
139
|
+
static void _outSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) out_node, const SetOperationStmt *node);
|
61
140
|
static void _outReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) out_node, const ReturnStmt *node);
|
62
141
|
static void _outPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) out_node, const PLAssignStmt *node);
|
142
|
+
static void _outCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) out_node, const CreateSchemaStmt *node);
|
63
143
|
static void _outAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) out_node, const AlterTableStmt *node);
|
144
|
+
static void _outReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) out_node, const ReplicaIdentityStmt *node);
|
64
145
|
static void _outAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) out_node, const AlterTableCmd *node);
|
146
|
+
static void _outAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) out_node, const AlterCollationStmt *node);
|
65
147
|
static void _outAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) out_node, const AlterDomainStmt *node);
|
66
|
-
static void _outSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) out_node, const SetOperationStmt *node);
|
67
148
|
static void _outGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) out_node, const GrantStmt *node);
|
149
|
+
static void _outObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) out_node, const ObjectWithArgs *node);
|
150
|
+
static void _outAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) out_node, const AccessPriv *node);
|
68
151
|
static void _outGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) out_node, const GrantRoleStmt *node);
|
69
152
|
static void _outAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) out_node, const AlterDefaultPrivilegesStmt *node);
|
70
|
-
static void _outClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) out_node, const ClosePortalStmt *node);
|
71
|
-
static void _outClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) out_node, const ClusterStmt *node);
|
72
153
|
static void _outCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) out_node, const CopyStmt *node);
|
154
|
+
static void _outVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) out_node, const VariableSetStmt *node);
|
155
|
+
static void _outVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) out_node, const VariableShowStmt *node);
|
73
156
|
static void _outCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) out_node, const CreateStmt *node);
|
157
|
+
static void _outConstraint(OUT_TYPE(Constraint, Constraint) out_node, const Constraint *node);
|
158
|
+
static void _outCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) out_node, const CreateTableSpaceStmt *node);
|
159
|
+
static void _outDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) out_node, const DropTableSpaceStmt *node);
|
160
|
+
static void _outAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) out_node, const AlterTableSpaceOptionsStmt *node);
|
161
|
+
static void _outAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) out_node, const AlterTableMoveAllStmt *node);
|
162
|
+
static void _outCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) out_node, const CreateExtensionStmt *node);
|
163
|
+
static void _outAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) out_node, const AlterExtensionStmt *node);
|
164
|
+
static void _outAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) out_node, const AlterExtensionContentsStmt *node);
|
165
|
+
static void _outCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) out_node, const CreateFdwStmt *node);
|
166
|
+
static void _outAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) out_node, const AlterFdwStmt *node);
|
167
|
+
static void _outCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) out_node, const CreateForeignServerStmt *node);
|
168
|
+
static void _outAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) out_node, const AlterForeignServerStmt *node);
|
169
|
+
static void _outCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) out_node, const CreateForeignTableStmt *node);
|
170
|
+
static void _outCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) out_node, const CreateUserMappingStmt *node);
|
171
|
+
static void _outAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) out_node, const AlterUserMappingStmt *node);
|
172
|
+
static void _outDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) out_node, const DropUserMappingStmt *node);
|
173
|
+
static void _outImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) out_node, const ImportForeignSchemaStmt *node);
|
174
|
+
static void _outCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) out_node, const CreatePolicyStmt *node);
|
175
|
+
static void _outAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) out_node, const AlterPolicyStmt *node);
|
176
|
+
static void _outCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) out_node, const CreateAmStmt *node);
|
177
|
+
static void _outCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) out_node, const CreateTrigStmt *node);
|
178
|
+
static void _outCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) out_node, const CreateEventTrigStmt *node);
|
179
|
+
static void _outAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) out_node, const AlterEventTrigStmt *node);
|
180
|
+
static void _outCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) out_node, const CreatePLangStmt *node);
|
181
|
+
static void _outCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) out_node, const CreateRoleStmt *node);
|
182
|
+
static void _outAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) out_node, const AlterRoleStmt *node);
|
183
|
+
static void _outAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) out_node, const AlterRoleSetStmt *node);
|
184
|
+
static void _outDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) out_node, const DropRoleStmt *node);
|
185
|
+
static void _outCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) out_node, const CreateSeqStmt *node);
|
186
|
+
static void _outAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) out_node, const AlterSeqStmt *node);
|
74
187
|
static void _outDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) out_node, const DefineStmt *node);
|
188
|
+
static void _outCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) out_node, const CreateDomainStmt *node);
|
189
|
+
static void _outCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) out_node, const CreateOpClassStmt *node);
|
190
|
+
static void _outCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) out_node, const CreateOpClassItem *node);
|
191
|
+
static void _outCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) out_node, const CreateOpFamilyStmt *node);
|
192
|
+
static void _outAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) out_node, const AlterOpFamilyStmt *node);
|
75
193
|
static void _outDropStmt(OUT_TYPE(DropStmt, DropStmt) out_node, const DropStmt *node);
|
76
194
|
static void _outTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) out_node, const TruncateStmt *node);
|
77
195
|
static void _outCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) out_node, const CommentStmt *node);
|
196
|
+
static void _outSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) out_node, const SecLabelStmt *node);
|
197
|
+
static void _outDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) out_node, const DeclareCursorStmt *node);
|
198
|
+
static void _outClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) out_node, const ClosePortalStmt *node);
|
78
199
|
static void _outFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) out_node, const FetchStmt *node);
|
79
200
|
static void _outIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) out_node, const IndexStmt *node);
|
201
|
+
static void _outCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) out_node, const CreateStatsStmt *node);
|
202
|
+
static void _outStatsElem(OUT_TYPE(StatsElem, StatsElem) out_node, const StatsElem *node);
|
203
|
+
static void _outAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) out_node, const AlterStatsStmt *node);
|
80
204
|
static void _outCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) out_node, const CreateFunctionStmt *node);
|
205
|
+
static void _outFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) out_node, const FunctionParameter *node);
|
81
206
|
static void _outAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) out_node, const AlterFunctionStmt *node);
|
82
207
|
static void _outDoStmt(OUT_TYPE(DoStmt, DoStmt) out_node, const DoStmt *node);
|
208
|
+
static void _outInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) out_node, const InlineCodeBlock *node);
|
209
|
+
static void _outCallStmt(OUT_TYPE(CallStmt, CallStmt) out_node, const CallStmt *node);
|
210
|
+
static void _outCallContext(OUT_TYPE(CallContext, CallContext) out_node, const CallContext *node);
|
83
211
|
static void _outRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) out_node, const RenameStmt *node);
|
212
|
+
static void _outAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) out_node, const AlterObjectDependsStmt *node);
|
213
|
+
static void _outAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) out_node, const AlterObjectSchemaStmt *node);
|
214
|
+
static void _outAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) out_node, const AlterOwnerStmt *node);
|
215
|
+
static void _outAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) out_node, const AlterOperatorStmt *node);
|
216
|
+
static void _outAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) out_node, const AlterTypeStmt *node);
|
84
217
|
static void _outRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) out_node, const RuleStmt *node);
|
85
218
|
static void _outNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) out_node, const NotifyStmt *node);
|
86
219
|
static void _outListenStmt(OUT_TYPE(ListenStmt, ListenStmt) out_node, const ListenStmt *node);
|
87
220
|
static void _outUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) out_node, const UnlistenStmt *node);
|
88
221
|
static void _outTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) out_node, const TransactionStmt *node);
|
222
|
+
static void _outCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) out_node, const CompositeTypeStmt *node);
|
223
|
+
static void _outCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) out_node, const CreateEnumStmt *node);
|
224
|
+
static void _outCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) out_node, const CreateRangeStmt *node);
|
225
|
+
static void _outAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) out_node, const AlterEnumStmt *node);
|
89
226
|
static void _outViewStmt(OUT_TYPE(ViewStmt, ViewStmt) out_node, const ViewStmt *node);
|
90
227
|
static void _outLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) out_node, const LoadStmt *node);
|
91
|
-
static void _outCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) out_node, const CreateDomainStmt *node);
|
92
228
|
static void _outCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) out_node, const CreatedbStmt *node);
|
229
|
+
static void _outAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) out_node, const AlterDatabaseStmt *node);
|
230
|
+
static void _outAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) out_node, const AlterDatabaseRefreshCollStmt *node);
|
231
|
+
static void _outAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) out_node, const AlterDatabaseSetStmt *node);
|
93
232
|
static void _outDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) out_node, const DropdbStmt *node);
|
233
|
+
static void _outAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) out_node, const AlterSystemStmt *node);
|
234
|
+
static void _outClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) out_node, const ClusterStmt *node);
|
94
235
|
static void _outVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) out_node, const VacuumStmt *node);
|
236
|
+
static void _outVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) out_node, const VacuumRelation *node);
|
95
237
|
static void _outExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) out_node, const ExplainStmt *node);
|
96
238
|
static void _outCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) out_node, const CreateTableAsStmt *node);
|
97
|
-
static void
|
98
|
-
static void
|
99
|
-
static void _outVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) out_node, const VariableSetStmt *node);
|
100
|
-
static void _outVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) out_node, const VariableShowStmt *node);
|
239
|
+
static void _outRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) out_node, const RefreshMatViewStmt *node);
|
240
|
+
static void _outCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) out_node, const CheckPointStmt *node);
|
101
241
|
static void _outDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) out_node, const DiscardStmt *node);
|
102
|
-
static void _outCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) out_node, const CreateTrigStmt *node);
|
103
|
-
static void _outCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) out_node, const CreatePLangStmt *node);
|
104
|
-
static void _outCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) out_node, const CreateRoleStmt *node);
|
105
|
-
static void _outAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) out_node, const AlterRoleStmt *node);
|
106
|
-
static void _outDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) out_node, const DropRoleStmt *node);
|
107
242
|
static void _outLockStmt(OUT_TYPE(LockStmt, LockStmt) out_node, const LockStmt *node);
|
108
243
|
static void _outConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) out_node, const ConstraintsSetStmt *node);
|
109
244
|
static void _outReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) out_node, const ReindexStmt *node);
|
110
|
-
static void _outCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) out_node, const CheckPointStmt *node);
|
111
|
-
static void _outCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) out_node, const CreateSchemaStmt *node);
|
112
|
-
static void _outAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) out_node, const AlterDatabaseStmt *node);
|
113
|
-
static void _outAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) out_node, const AlterDatabaseRefreshCollStmt *node);
|
114
|
-
static void _outAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) out_node, const AlterDatabaseSetStmt *node);
|
115
|
-
static void _outAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) out_node, const AlterRoleSetStmt *node);
|
116
245
|
static void _outCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) out_node, const CreateConversionStmt *node);
|
117
246
|
static void _outCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) out_node, const CreateCastStmt *node);
|
118
|
-
static void
|
119
|
-
static void _outCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) out_node, const CreateOpFamilyStmt *node);
|
120
|
-
static void _outAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) out_node, const AlterOpFamilyStmt *node);
|
247
|
+
static void _outCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) out_node, const CreateTransformStmt *node);
|
121
248
|
static void _outPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) out_node, const PrepareStmt *node);
|
122
249
|
static void _outExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) out_node, const ExecuteStmt *node);
|
123
250
|
static void _outDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) out_node, const DeallocateStmt *node);
|
124
|
-
static void _outDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) out_node, const DeclareCursorStmt *node);
|
125
|
-
static void _outCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) out_node, const CreateTableSpaceStmt *node);
|
126
|
-
static void _outDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) out_node, const DropTableSpaceStmt *node);
|
127
|
-
static void _outAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) out_node, const AlterObjectDependsStmt *node);
|
128
|
-
static void _outAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) out_node, const AlterObjectSchemaStmt *node);
|
129
|
-
static void _outAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) out_node, const AlterOwnerStmt *node);
|
130
|
-
static void _outAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) out_node, const AlterOperatorStmt *node);
|
131
|
-
static void _outAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) out_node, const AlterTypeStmt *node);
|
132
251
|
static void _outDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) out_node, const DropOwnedStmt *node);
|
133
252
|
static void _outReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) out_node, const ReassignOwnedStmt *node);
|
134
|
-
static void _outCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) out_node, const CompositeTypeStmt *node);
|
135
|
-
static void _outCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) out_node, const CreateEnumStmt *node);
|
136
|
-
static void _outCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) out_node, const CreateRangeStmt *node);
|
137
|
-
static void _outAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) out_node, const AlterEnumStmt *node);
|
138
253
|
static void _outAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) out_node, const AlterTSDictionaryStmt *node);
|
139
254
|
static void _outAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) out_node, const AlterTSConfigurationStmt *node);
|
140
|
-
static void
|
141
|
-
static void
|
142
|
-
static void _outCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) out_node, const CreateForeignServerStmt *node);
|
143
|
-
static void _outAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) out_node, const AlterForeignServerStmt *node);
|
144
|
-
static void _outCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) out_node, const CreateUserMappingStmt *node);
|
145
|
-
static void _outAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) out_node, const AlterUserMappingStmt *node);
|
146
|
-
static void _outDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) out_node, const DropUserMappingStmt *node);
|
147
|
-
static void _outAlterTableSpaceOptionsStmt(OUT_TYPE(AlterTableSpaceOptionsStmt, AlterTableSpaceOptionsStmt) out_node, const AlterTableSpaceOptionsStmt *node);
|
148
|
-
static void _outAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt) out_node, const AlterTableMoveAllStmt *node);
|
149
|
-
static void _outSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) out_node, const SecLabelStmt *node);
|
150
|
-
static void _outCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) out_node, const CreateForeignTableStmt *node);
|
151
|
-
static void _outImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) out_node, const ImportForeignSchemaStmt *node);
|
152
|
-
static void _outCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) out_node, const CreateExtensionStmt *node);
|
153
|
-
static void _outAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) out_node, const AlterExtensionStmt *node);
|
154
|
-
static void _outAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) out_node, const AlterExtensionContentsStmt *node);
|
155
|
-
static void _outCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) out_node, const CreateEventTrigStmt *node);
|
156
|
-
static void _outAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) out_node, const AlterEventTrigStmt *node);
|
157
|
-
static void _outRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) out_node, const RefreshMatViewStmt *node);
|
158
|
-
static void _outReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) out_node, const ReplicaIdentityStmt *node);
|
159
|
-
static void _outAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) out_node, const AlterSystemStmt *node);
|
160
|
-
static void _outCreatePolicyStmt(OUT_TYPE(CreatePolicyStmt, CreatePolicyStmt) out_node, const CreatePolicyStmt *node);
|
161
|
-
static void _outAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) out_node, const AlterPolicyStmt *node);
|
162
|
-
static void _outCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) out_node, const CreateTransformStmt *node);
|
163
|
-
static void _outCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) out_node, const CreateAmStmt *node);
|
255
|
+
static void _outPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) out_node, const PublicationTable *node);
|
256
|
+
static void _outPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) out_node, const PublicationObjSpec *node);
|
164
257
|
static void _outCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) out_node, const CreatePublicationStmt *node);
|
165
258
|
static void _outAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) out_node, const AlterPublicationStmt *node);
|
166
259
|
static void _outCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) out_node, const CreateSubscriptionStmt *node);
|
167
260
|
static void _outAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) out_node, const AlterSubscriptionStmt *node);
|
168
261
|
static void _outDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) out_node, const DropSubscriptionStmt *node);
|
169
|
-
static void _outCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) out_node, const CreateStatsStmt *node);
|
170
|
-
static void _outAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) out_node, const AlterCollationStmt *node);
|
171
|
-
static void _outCallStmt(OUT_TYPE(CallStmt, CallStmt) out_node, const CallStmt *node);
|
172
|
-
static void _outAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) out_node, const AlterStatsStmt *node);
|
173
|
-
static void _outAExpr(OUT_TYPE(A_Expr, AExpr) out_node, const A_Expr *node);
|
174
|
-
static void _outColumnRef(OUT_TYPE(ColumnRef, ColumnRef) out_node, const ColumnRef *node);
|
175
|
-
static void _outParamRef(OUT_TYPE(ParamRef, ParamRef) out_node, const ParamRef *node);
|
176
|
-
static void _outFuncCall(OUT_TYPE(FuncCall, FuncCall) out_node, const FuncCall *node);
|
177
|
-
static void _outAStar(OUT_TYPE(A_Star, AStar) out_node, const A_Star *node);
|
178
|
-
static void _outAIndices(OUT_TYPE(A_Indices, AIndices) out_node, const A_Indices *node);
|
179
|
-
static void _outAIndirection(OUT_TYPE(A_Indirection, AIndirection) out_node, const A_Indirection *node);
|
180
|
-
static void _outAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) out_node, const A_ArrayExpr *node);
|
181
|
-
static void _outResTarget(OUT_TYPE(ResTarget, ResTarget) out_node, const ResTarget *node);
|
182
|
-
static void _outMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) out_node, const MultiAssignRef *node);
|
183
|
-
static void _outTypeCast(OUT_TYPE(TypeCast, TypeCast) out_node, const TypeCast *node);
|
184
|
-
static void _outCollateClause(OUT_TYPE(CollateClause, CollateClause) out_node, const CollateClause *node);
|
185
|
-
static void _outSortBy(OUT_TYPE(SortBy, SortBy) out_node, const SortBy *node);
|
186
|
-
static void _outWindowDef(OUT_TYPE(WindowDef, WindowDef) out_node, const WindowDef *node);
|
187
|
-
static void _outRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) out_node, const RangeSubselect *node);
|
188
|
-
static void _outRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) out_node, const RangeFunction *node);
|
189
|
-
static void _outRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) out_node, const RangeTableSample *node);
|
190
|
-
static void _outRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) out_node, const RangeTableFunc *node);
|
191
|
-
static void _outRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) out_node, const RangeTableFuncCol *node);
|
192
|
-
static void _outTypeName(OUT_TYPE(TypeName, TypeName) out_node, const TypeName *node);
|
193
|
-
static void _outColumnDef(OUT_TYPE(ColumnDef, ColumnDef) out_node, const ColumnDef *node);
|
194
|
-
static void _outIndexElem(OUT_TYPE(IndexElem, IndexElem) out_node, const IndexElem *node);
|
195
|
-
static void _outStatsElem(OUT_TYPE(StatsElem, StatsElem) out_node, const StatsElem *node);
|
196
|
-
static void _outConstraint(OUT_TYPE(Constraint, Constraint) out_node, const Constraint *node);
|
197
|
-
static void _outDefElem(OUT_TYPE(DefElem, DefElem) out_node, const DefElem *node);
|
198
|
-
static void _outRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) out_node, const RangeTblEntry *node);
|
199
|
-
static void _outRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) out_node, const RangeTblFunction *node);
|
200
|
-
static void _outTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) out_node, const TableSampleClause *node);
|
201
|
-
static void _outWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) out_node, const WithCheckOption *node);
|
202
|
-
static void _outSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) out_node, const SortGroupClause *node);
|
203
|
-
static void _outGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) out_node, const GroupingSet *node);
|
204
|
-
static void _outWindowClause(OUT_TYPE(WindowClause, WindowClause) out_node, const WindowClause *node);
|
205
|
-
static void _outObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) out_node, const ObjectWithArgs *node);
|
206
|
-
static void _outAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) out_node, const AccessPriv *node);
|
207
|
-
static void _outCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) out_node, const CreateOpClassItem *node);
|
208
|
-
static void _outTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) out_node, const TableLikeClause *node);
|
209
|
-
static void _outFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) out_node, const FunctionParameter *node);
|
210
|
-
static void _outLockingClause(OUT_TYPE(LockingClause, LockingClause) out_node, const LockingClause *node);
|
211
|
-
static void _outRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) out_node, const RowMarkClause *node);
|
212
|
-
static void _outXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) out_node, const XmlSerialize *node);
|
213
|
-
static void _outWithClause(OUT_TYPE(WithClause, WithClause) out_node, const WithClause *node);
|
214
|
-
static void _outInferClause(OUT_TYPE(InferClause, InferClause) out_node, const InferClause *node);
|
215
|
-
static void _outOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) out_node, const OnConflictClause *node);
|
216
|
-
static void _outCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) out_node, const CTESearchClause *node);
|
217
|
-
static void _outCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) out_node, const CTECycleClause *node);
|
218
|
-
static void _outCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) out_node, const CommonTableExpr *node);
|
219
|
-
static void _outMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) out_node, const MergeWhenClause *node);
|
220
|
-
static void _outRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) out_node, const RoleSpec *node);
|
221
|
-
static void _outTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) out_node, const TriggerTransition *node);
|
222
|
-
static void _outPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) out_node, const PartitionElem *node);
|
223
|
-
static void _outPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) out_node, const PartitionSpec *node);
|
224
|
-
static void _outPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) out_node, const PartitionBoundSpec *node);
|
225
|
-
static void _outPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) out_node, const PartitionRangeDatum *node);
|
226
|
-
static void _outPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) out_node, const PartitionCmd *node);
|
227
|
-
static void _outVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) out_node, const VacuumRelation *node);
|
228
|
-
static void _outPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) out_node, const PublicationObjSpec *node);
|
229
|
-
static void _outPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) out_node, const PublicationTable *node);
|
230
|
-
static void _outInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) out_node, const InlineCodeBlock *node);
|
231
|
-
static void _outCallContext(OUT_TYPE(CallContext, CallContext) out_node, const CallContext *node);
|
232
262
|
|
233
263
|
|
234
264
|
static void
|
@@ -253,6 +283,7 @@ _outRangeVar(OUT_TYPE(RangeVar, RangeVar) out, const RangeVar *node)
|
|
253
283
|
static void
|
254
284
|
_outTableFunc(OUT_TYPE(TableFunc, TableFunc) out, const TableFunc *node)
|
255
285
|
{
|
286
|
+
WRITE_ENUM_FIELD(TableFuncType, functype, functype, functype);
|
256
287
|
WRITE_LIST_FIELD(ns_uris, ns_uris, ns_uris);
|
257
288
|
WRITE_LIST_FIELD(ns_names, ns_names, ns_names);
|
258
289
|
WRITE_NODE_PTR_FIELD(docexpr, docexpr, docexpr);
|
@@ -263,22 +294,37 @@ _outTableFunc(OUT_TYPE(TableFunc, TableFunc) out, const TableFunc *node)
|
|
263
294
|
WRITE_LIST_FIELD(colcollations, colcollations, colcollations);
|
264
295
|
WRITE_LIST_FIELD(colexprs, colexprs, colexprs);
|
265
296
|
WRITE_LIST_FIELD(coldefexprs, coldefexprs, coldefexprs);
|
297
|
+
WRITE_LIST_FIELD(colvalexprs, colvalexprs, colvalexprs);
|
298
|
+
WRITE_LIST_FIELD(passingvalexprs, passingvalexprs, passingvalexprs);
|
266
299
|
WRITE_BITMAPSET_FIELD(notnulls, notnulls, notnulls);
|
300
|
+
WRITE_NODE_PTR_FIELD(plan, plan, plan);
|
267
301
|
WRITE_INT_FIELD(ordinalitycol, ordinalitycol, ordinalitycol);
|
268
302
|
WRITE_INT_FIELD(location, location, location);
|
269
303
|
}
|
270
304
|
|
271
305
|
static void
|
272
|
-
|
306
|
+
_outIntoClause(OUT_TYPE(IntoClause, IntoClause) out, const IntoClause *node)
|
273
307
|
{
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
308
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, rel, rel, rel);
|
309
|
+
WRITE_LIST_FIELD(col_names, colNames, colNames);
|
310
|
+
WRITE_STRING_FIELD(access_method, accessMethod, accessMethod);
|
311
|
+
WRITE_LIST_FIELD(options, options, options);
|
312
|
+
WRITE_ENUM_FIELD(OnCommitAction, on_commit, onCommit, onCommit);
|
313
|
+
WRITE_STRING_FIELD(table_space_name, tableSpaceName, tableSpaceName);
|
314
|
+
WRITE_NODE_PTR_FIELD(view_query, viewQuery, viewQuery);
|
315
|
+
WRITE_BOOL_FIELD(skip_data, skipData, skipData);
|
316
|
+
}
|
317
|
+
|
318
|
+
static void
|
319
|
+
_outVar(OUT_TYPE(Var, Var) out, const Var *node)
|
320
|
+
{
|
321
|
+
WRITE_INT_FIELD(varno, varno, varno);
|
322
|
+
WRITE_INT_FIELD(varattno, varattno, varattno);
|
323
|
+
WRITE_UINT_FIELD(vartype, vartype, vartype);
|
324
|
+
WRITE_INT_FIELD(vartypmod, vartypmod, vartypmod);
|
325
|
+
WRITE_UINT_FIELD(varcollid, varcollid, varcollid);
|
326
|
+
WRITE_BITMAPSET_FIELD(varnullingrels, varnullingrels, varnullingrels);
|
327
|
+
WRITE_UINT_FIELD(varlevelsup, varlevelsup, varlevelsup);
|
282
328
|
WRITE_INT_FIELD(location, location, location);
|
283
329
|
}
|
284
330
|
|
@@ -300,7 +346,6 @@ _outAggref(OUT_TYPE(Aggref, Aggref) out, const Aggref *node)
|
|
300
346
|
WRITE_UINT_FIELD(aggtype, aggtype, aggtype);
|
301
347
|
WRITE_UINT_FIELD(aggcollid, aggcollid, aggcollid);
|
302
348
|
WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid);
|
303
|
-
WRITE_UINT_FIELD(aggtranstype, aggtranstype, aggtranstype);
|
304
349
|
WRITE_LIST_FIELD(aggargtypes, aggargtypes, aggargtypes);
|
305
350
|
WRITE_LIST_FIELD(aggdirectargs, aggdirectargs, aggdirectargs);
|
306
351
|
WRITE_LIST_FIELD(args, args, args);
|
@@ -322,7 +367,6 @@ _outGroupingFunc(OUT_TYPE(GroupingFunc, GroupingFunc) out, const GroupingFunc *n
|
|
322
367
|
{
|
323
368
|
WRITE_LIST_FIELD(args, args, args);
|
324
369
|
WRITE_LIST_FIELD(refs, refs, refs);
|
325
|
-
WRITE_LIST_FIELD(cols, cols, cols);
|
326
370
|
WRITE_UINT_FIELD(agglevelsup, agglevelsup, agglevelsup);
|
327
371
|
WRITE_INT_FIELD(location, location, location);
|
328
372
|
}
|
@@ -336,12 +380,30 @@ _outWindowFunc(OUT_TYPE(WindowFunc, WindowFunc) out, const WindowFunc *node)
|
|
336
380
|
WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid);
|
337
381
|
WRITE_LIST_FIELD(args, args, args);
|
338
382
|
WRITE_NODE_PTR_FIELD(aggfilter, aggfilter, aggfilter);
|
383
|
+
WRITE_LIST_FIELD(run_condition, runCondition, runCondition);
|
339
384
|
WRITE_UINT_FIELD(winref, winref, winref);
|
340
385
|
WRITE_BOOL_FIELD(winstar, winstar, winstar);
|
341
386
|
WRITE_BOOL_FIELD(winagg, winagg, winagg);
|
342
387
|
WRITE_INT_FIELD(location, location, location);
|
343
388
|
}
|
344
389
|
|
390
|
+
static void
|
391
|
+
_outWindowFuncRunCondition(OUT_TYPE(WindowFuncRunCondition, WindowFuncRunCondition) out, const WindowFuncRunCondition *node)
|
392
|
+
{
|
393
|
+
WRITE_UINT_FIELD(opno, opno, opno);
|
394
|
+
WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid);
|
395
|
+
WRITE_BOOL_FIELD(wfunc_left, wfunc_left, wfunc_left);
|
396
|
+
WRITE_NODE_PTR_FIELD(arg, arg, arg);
|
397
|
+
}
|
398
|
+
|
399
|
+
static void
|
400
|
+
_outMergeSupportFunc(OUT_TYPE(MergeSupportFunc, MergeSupportFunc) out, const MergeSupportFunc *node)
|
401
|
+
{
|
402
|
+
WRITE_UINT_FIELD(msftype, msftype, msftype);
|
403
|
+
WRITE_UINT_FIELD(msfcollid, msfcollid, msfcollid);
|
404
|
+
WRITE_INT_FIELD(location, location, location);
|
405
|
+
}
|
406
|
+
|
345
407
|
static void
|
346
408
|
_outSubscriptingRef(OUT_TYPE(SubscriptingRef, SubscriptingRef) out, const SubscriptingRef *node)
|
347
409
|
{
|
@@ -383,7 +445,6 @@ static void
|
|
383
445
|
_outOpExpr(OUT_TYPE(OpExpr, OpExpr) out, const OpExpr *node)
|
384
446
|
{
|
385
447
|
WRITE_UINT_FIELD(opno, opno, opno);
|
386
|
-
WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid);
|
387
448
|
WRITE_UINT_FIELD(opresulttype, opresulttype, opresulttype);
|
388
449
|
WRITE_BOOL_FIELD(opretset, opretset, opretset);
|
389
450
|
WRITE_UINT_FIELD(opcollid, opcollid, opcollid);
|
@@ -396,7 +457,6 @@ static void
|
|
396
457
|
_outDistinctExpr(OUT_TYPE(DistinctExpr, DistinctExpr) out, const DistinctExpr *node)
|
397
458
|
{
|
398
459
|
WRITE_UINT_FIELD(opno, opno, opno);
|
399
|
-
WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid);
|
400
460
|
WRITE_UINT_FIELD(opresulttype, opresulttype, opresulttype);
|
401
461
|
WRITE_BOOL_FIELD(opretset, opretset, opretset);
|
402
462
|
WRITE_UINT_FIELD(opcollid, opcollid, opcollid);
|
@@ -409,7 +469,6 @@ static void
|
|
409
469
|
_outNullIfExpr(OUT_TYPE(NullIfExpr, NullIfExpr) out, const NullIfExpr *node)
|
410
470
|
{
|
411
471
|
WRITE_UINT_FIELD(opno, opno, opno);
|
412
|
-
WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid);
|
413
472
|
WRITE_UINT_FIELD(opresulttype, opresulttype, opresulttype);
|
414
473
|
WRITE_BOOL_FIELD(opretset, opretset, opretset);
|
415
474
|
WRITE_UINT_FIELD(opcollid, opcollid, opcollid);
|
@@ -422,9 +481,6 @@ static void
|
|
422
481
|
_outScalarArrayOpExpr(OUT_TYPE(ScalarArrayOpExpr, ScalarArrayOpExpr) out, const ScalarArrayOpExpr *node)
|
423
482
|
{
|
424
483
|
WRITE_UINT_FIELD(opno, opno, opno);
|
425
|
-
WRITE_UINT_FIELD(opfuncid, opfuncid, opfuncid);
|
426
|
-
WRITE_UINT_FIELD(hashfuncid, hashfuncid, hashfuncid);
|
427
|
-
WRITE_UINT_FIELD(negfuncid, negfuncid, negfuncid);
|
428
484
|
WRITE_BOOL_FIELD(use_or, useOr, useOr);
|
429
485
|
WRITE_UINT_FIELD(inputcollid, inputcollid, inputcollid);
|
430
486
|
WRITE_LIST_FIELD(args, args, args);
|
@@ -643,11 +699,112 @@ _outXmlExpr(OUT_TYPE(XmlExpr, XmlExpr) out, const XmlExpr *node)
|
|
643
699
|
WRITE_LIST_FIELD(arg_names, arg_names, arg_names);
|
644
700
|
WRITE_LIST_FIELD(args, args, args);
|
645
701
|
WRITE_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption);
|
702
|
+
WRITE_BOOL_FIELD(indent, indent, indent);
|
646
703
|
WRITE_UINT_FIELD(type, type, type);
|
647
704
|
WRITE_INT_FIELD(typmod, typmod, typmod);
|
648
705
|
WRITE_INT_FIELD(location, location, location);
|
649
706
|
}
|
650
707
|
|
708
|
+
static void
|
709
|
+
_outJsonFormat(OUT_TYPE(JsonFormat, JsonFormat) out, const JsonFormat *node)
|
710
|
+
{
|
711
|
+
WRITE_ENUM_FIELD(JsonFormatType, format_type, format_type, format_type);
|
712
|
+
WRITE_ENUM_FIELD(JsonEncoding, encoding, encoding, encoding);
|
713
|
+
WRITE_INT_FIELD(location, location, location);
|
714
|
+
}
|
715
|
+
|
716
|
+
static void
|
717
|
+
_outJsonReturning(OUT_TYPE(JsonReturning, JsonReturning) out, const JsonReturning *node)
|
718
|
+
{
|
719
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonFormat, json_format, format, format, format);
|
720
|
+
WRITE_UINT_FIELD(typid, typid, typid);
|
721
|
+
WRITE_INT_FIELD(typmod, typmod, typmod);
|
722
|
+
}
|
723
|
+
|
724
|
+
static void
|
725
|
+
_outJsonValueExpr(OUT_TYPE(JsonValueExpr, JsonValueExpr) out, const JsonValueExpr *node)
|
726
|
+
{
|
727
|
+
WRITE_NODE_PTR_FIELD(raw_expr, raw_expr, raw_expr);
|
728
|
+
WRITE_NODE_PTR_FIELD(formatted_expr, formatted_expr, formatted_expr);
|
729
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonFormat, json_format, format, format, format);
|
730
|
+
}
|
731
|
+
|
732
|
+
static void
|
733
|
+
_outJsonConstructorExpr(OUT_TYPE(JsonConstructorExpr, JsonConstructorExpr) out, const JsonConstructorExpr *node)
|
734
|
+
{
|
735
|
+
WRITE_ENUM_FIELD(JsonConstructorType, type, type, type);
|
736
|
+
WRITE_LIST_FIELD(args, args, args);
|
737
|
+
WRITE_NODE_PTR_FIELD(func, func, func);
|
738
|
+
WRITE_NODE_PTR_FIELD(coercion, coercion, coercion);
|
739
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonReturning, json_returning, returning, returning, returning);
|
740
|
+
WRITE_BOOL_FIELD(absent_on_null, absent_on_null, absent_on_null);
|
741
|
+
WRITE_BOOL_FIELD(unique, unique, unique);
|
742
|
+
WRITE_INT_FIELD(location, location, location);
|
743
|
+
}
|
744
|
+
|
745
|
+
static void
|
746
|
+
_outJsonIsPredicate(OUT_TYPE(JsonIsPredicate, JsonIsPredicate) out, const JsonIsPredicate *node)
|
747
|
+
{
|
748
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
749
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonFormat, json_format, format, format, format);
|
750
|
+
WRITE_ENUM_FIELD(JsonValueType, item_type, item_type, item_type);
|
751
|
+
WRITE_BOOL_FIELD(unique_keys, unique_keys, unique_keys);
|
752
|
+
WRITE_INT_FIELD(location, location, location);
|
753
|
+
}
|
754
|
+
|
755
|
+
static void
|
756
|
+
_outJsonBehavior(OUT_TYPE(JsonBehavior, JsonBehavior) out, const JsonBehavior *node)
|
757
|
+
{
|
758
|
+
WRITE_ENUM_FIELD(JsonBehaviorType, btype, btype, btype);
|
759
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
760
|
+
WRITE_BOOL_FIELD(coerce, coerce, coerce);
|
761
|
+
WRITE_INT_FIELD(location, location, location);
|
762
|
+
}
|
763
|
+
|
764
|
+
static void
|
765
|
+
_outJsonExpr(OUT_TYPE(JsonExpr, JsonExpr) out, const JsonExpr *node)
|
766
|
+
{
|
767
|
+
WRITE_ENUM_FIELD(JsonExprOp, op, op, op);
|
768
|
+
WRITE_STRING_FIELD(column_name, column_name, column_name);
|
769
|
+
WRITE_NODE_PTR_FIELD(formatted_expr, formatted_expr, formatted_expr);
|
770
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonFormat, json_format, format, format, format);
|
771
|
+
WRITE_NODE_PTR_FIELD(path_spec, path_spec, path_spec);
|
772
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonReturning, json_returning, returning, returning, returning);
|
773
|
+
WRITE_LIST_FIELD(passing_names, passing_names, passing_names);
|
774
|
+
WRITE_LIST_FIELD(passing_values, passing_values, passing_values);
|
775
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_empty, on_empty, on_empty);
|
776
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_error, on_error, on_error);
|
777
|
+
WRITE_BOOL_FIELD(use_io_coercion, use_io_coercion, use_io_coercion);
|
778
|
+
WRITE_BOOL_FIELD(use_json_coercion, use_json_coercion, use_json_coercion);
|
779
|
+
WRITE_ENUM_FIELD(JsonWrapper, wrapper, wrapper, wrapper);
|
780
|
+
WRITE_BOOL_FIELD(omit_quotes, omit_quotes, omit_quotes);
|
781
|
+
WRITE_UINT_FIELD(collation, collation, collation);
|
782
|
+
WRITE_INT_FIELD(location, location, location);
|
783
|
+
}
|
784
|
+
|
785
|
+
static void
|
786
|
+
_outJsonTablePath(OUT_TYPE(JsonTablePath, JsonTablePath) out, const JsonTablePath *node)
|
787
|
+
{
|
788
|
+
WRITE_STRING_FIELD(name, name, name);
|
789
|
+
}
|
790
|
+
|
791
|
+
static void
|
792
|
+
_outJsonTablePathScan(OUT_TYPE(JsonTablePathScan, JsonTablePathScan) out, const JsonTablePathScan *node)
|
793
|
+
{
|
794
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonTablePath, json_table_path, path, path, path);
|
795
|
+
WRITE_BOOL_FIELD(error_on_error, errorOnError, errorOnError);
|
796
|
+
WRITE_NODE_PTR_FIELD(child, child, child);
|
797
|
+
WRITE_INT_FIELD(col_min, colMin, colMin);
|
798
|
+
WRITE_INT_FIELD(col_max, colMax, colMax);
|
799
|
+
}
|
800
|
+
|
801
|
+
static void
|
802
|
+
_outJsonTableSiblingJoin(OUT_TYPE(JsonTableSiblingJoin, JsonTableSiblingJoin) out, const JsonTableSiblingJoin *node)
|
803
|
+
{
|
804
|
+
WRITE_NODE_PTR_FIELD(lplan, lplan, lplan);
|
805
|
+
WRITE_NODE_PTR_FIELD(rplan, rplan, rplan);
|
806
|
+
}
|
807
|
+
|
651
808
|
static void
|
652
809
|
_outNullTest(OUT_TYPE(NullTest, NullTest) out, const NullTest *node)
|
653
810
|
{
|
@@ -665,6 +822,17 @@ _outBooleanTest(OUT_TYPE(BooleanTest, BooleanTest) out, const BooleanTest *node)
|
|
665
822
|
WRITE_INT_FIELD(location, location, location);
|
666
823
|
}
|
667
824
|
|
825
|
+
static void
|
826
|
+
_outMergeAction(OUT_TYPE(MergeAction, MergeAction) out, const MergeAction *node)
|
827
|
+
{
|
828
|
+
WRITE_ENUM_FIELD(MergeMatchKind, match_kind, matchKind, matchKind);
|
829
|
+
WRITE_ENUM_FIELD(CmdType, command_type, commandType, commandType);
|
830
|
+
WRITE_ENUM_FIELD(OverridingKind, override, override, override);
|
831
|
+
WRITE_NODE_PTR_FIELD(qual, qual, qual);
|
832
|
+
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
833
|
+
WRITE_LIST_FIELD(update_colnos, updateColnos, updateColnos);
|
834
|
+
}
|
835
|
+
|
668
836
|
static void
|
669
837
|
_outCoerceToDomain(OUT_TYPE(CoerceToDomain, CoerceToDomain) out, const CoerceToDomain *node)
|
670
838
|
{
|
@@ -769,38 +937,6 @@ _outOnConflictExpr(OUT_TYPE(OnConflictExpr, OnConflictExpr) out, const OnConflic
|
|
769
937
|
WRITE_LIST_FIELD(excl_rel_tlist, exclRelTlist, exclRelTlist);
|
770
938
|
}
|
771
939
|
|
772
|
-
static void
|
773
|
-
_outIntoClause(OUT_TYPE(IntoClause, IntoClause) out, const IntoClause *node)
|
774
|
-
{
|
775
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, rel, rel, rel);
|
776
|
-
WRITE_LIST_FIELD(col_names, colNames, colNames);
|
777
|
-
WRITE_STRING_FIELD(access_method, accessMethod, accessMethod);
|
778
|
-
WRITE_LIST_FIELD(options, options, options);
|
779
|
-
WRITE_ENUM_FIELD(OnCommitAction, on_commit, onCommit, onCommit);
|
780
|
-
WRITE_STRING_FIELD(table_space_name, tableSpaceName, tableSpaceName);
|
781
|
-
WRITE_NODE_PTR_FIELD(view_query, viewQuery, viewQuery);
|
782
|
-
WRITE_BOOL_FIELD(skip_data, skipData, skipData);
|
783
|
-
}
|
784
|
-
|
785
|
-
static void
|
786
|
-
_outMergeAction(OUT_TYPE(MergeAction, MergeAction) out, const MergeAction *node)
|
787
|
-
{
|
788
|
-
WRITE_BOOL_FIELD(matched, matched, matched);
|
789
|
-
WRITE_ENUM_FIELD(CmdType, command_type, commandType, commandType);
|
790
|
-
WRITE_ENUM_FIELD(OverridingKind, override, override, override);
|
791
|
-
WRITE_NODE_PTR_FIELD(qual, qual, qual);
|
792
|
-
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
793
|
-
WRITE_LIST_FIELD(update_colnos, updateColnos, updateColnos);
|
794
|
-
}
|
795
|
-
|
796
|
-
static void
|
797
|
-
_outRawStmt(OUT_TYPE(RawStmt, RawStmt) out, const RawStmt *node)
|
798
|
-
{
|
799
|
-
WRITE_NODE_PTR_FIELD(stmt, stmt, stmt);
|
800
|
-
WRITE_INT_FIELD(stmt_location, stmt_location, stmt_location);
|
801
|
-
WRITE_INT_FIELD(stmt_len, stmt_len, stmt_len);
|
802
|
-
}
|
803
|
-
|
804
940
|
static void
|
805
941
|
_outQuery(OUT_TYPE(Query, Query) out, const Query *node)
|
806
942
|
{
|
@@ -821,9 +957,11 @@ _outQuery(OUT_TYPE(Query, Query) out, const Query *node)
|
|
821
957
|
WRITE_BOOL_FIELD(is_return, isReturn, isReturn);
|
822
958
|
WRITE_LIST_FIELD(cte_list, cteList, cteList);
|
823
959
|
WRITE_LIST_FIELD(rtable, rtable, rtable);
|
960
|
+
WRITE_LIST_FIELD(rteperminfos, rteperminfos, rteperminfos);
|
824
961
|
WRITE_SPECIFIC_NODE_PTR_FIELD(FromExpr, from_expr, jointree, jointree, jointree);
|
825
962
|
WRITE_LIST_FIELD(merge_action_list, mergeActionList, mergeActionList);
|
826
|
-
|
963
|
+
WRITE_INT_FIELD(merge_target_relation, mergeTargetRelation, mergeTargetRelation);
|
964
|
+
WRITE_NODE_PTR_FIELD(merge_join_condition, mergeJoinCondition, mergeJoinCondition);
|
827
965
|
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
828
966
|
WRITE_ENUM_FIELD(OverridingKind, override, override, override);
|
829
967
|
WRITE_SPECIFIC_NODE_PTR_FIELD(OnConflictExpr, on_conflict_expr, on_conflict, onConflict, onConflict);
|
@@ -847,851 +985,999 @@ _outQuery(OUT_TYPE(Query, Query) out, const Query *node)
|
|
847
985
|
}
|
848
986
|
|
849
987
|
static void
|
850
|
-
|
988
|
+
_outTypeName(OUT_TYPE(TypeName, TypeName) out, const TypeName *node)
|
851
989
|
{
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
WRITE_LIST_FIELD(
|
857
|
-
|
858
|
-
|
990
|
+
WRITE_LIST_FIELD(names, names, names);
|
991
|
+
WRITE_UINT_FIELD(type_oid, typeOid, typeOid);
|
992
|
+
WRITE_BOOL_FIELD(setof, setof, setof);
|
993
|
+
WRITE_BOOL_FIELD(pct_type, pct_type, pct_type);
|
994
|
+
WRITE_LIST_FIELD(typmods, typmods, typmods);
|
995
|
+
WRITE_INT_FIELD(typemod, typemod, typemod);
|
996
|
+
WRITE_LIST_FIELD(array_bounds, arrayBounds, arrayBounds);
|
997
|
+
WRITE_INT_FIELD(location, location, location);
|
859
998
|
}
|
860
999
|
|
861
1000
|
static void
|
862
|
-
|
1001
|
+
_outColumnRef(OUT_TYPE(ColumnRef, ColumnRef) out, const ColumnRef *node)
|
863
1002
|
{
|
864
|
-
|
865
|
-
|
866
|
-
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
867
|
-
WRITE_LIST_FIELD(returning_list, returningList, returningList);
|
868
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1003
|
+
WRITE_LIST_FIELD(fields, fields, fields);
|
1004
|
+
WRITE_INT_FIELD(location, location, location);
|
869
1005
|
}
|
870
1006
|
|
871
1007
|
static void
|
872
|
-
|
1008
|
+
_outParamRef(OUT_TYPE(ParamRef, ParamRef) out, const ParamRef *node)
|
873
1009
|
{
|
874
|
-
|
875
|
-
|
876
|
-
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
877
|
-
WRITE_LIST_FIELD(from_clause, fromClause, fromClause);
|
878
|
-
WRITE_LIST_FIELD(returning_list, returningList, returningList);
|
879
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1010
|
+
WRITE_INT_FIELD(number, number, number);
|
1011
|
+
WRITE_INT_FIELD(location, location, location);
|
880
1012
|
}
|
881
1013
|
|
882
1014
|
static void
|
883
|
-
|
1015
|
+
_outAExpr(OUT_TYPE(A_Expr, AExpr) out, const A_Expr *node)
|
884
1016
|
{
|
885
|
-
|
886
|
-
|
887
|
-
WRITE_NODE_PTR_FIELD(
|
888
|
-
|
889
|
-
|
1017
|
+
WRITE_ENUM_FIELD(A_Expr_Kind, kind, kind, kind);
|
1018
|
+
WRITE_LIST_FIELD(name, name, name);
|
1019
|
+
WRITE_NODE_PTR_FIELD(lexpr, lexpr, lexpr);
|
1020
|
+
WRITE_NODE_PTR_FIELD(rexpr, rexpr, rexpr);
|
1021
|
+
WRITE_INT_FIELD(location, location, location);
|
890
1022
|
}
|
891
1023
|
|
892
1024
|
static void
|
893
|
-
|
1025
|
+
_outTypeCast(OUT_TYPE(TypeCast, TypeCast) out, const TypeCast *node)
|
894
1026
|
{
|
895
|
-
|
896
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
897
|
-
|
898
|
-
WRITE_LIST_FIELD(from_clause, fromClause, fromClause);
|
899
|
-
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
900
|
-
WRITE_LIST_FIELD(group_clause, groupClause, groupClause);
|
901
|
-
WRITE_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct);
|
902
|
-
WRITE_NODE_PTR_FIELD(having_clause, havingClause, havingClause);
|
903
|
-
WRITE_LIST_FIELD(window_clause, windowClause, windowClause);
|
904
|
-
WRITE_LIST_FIELD(values_lists, valuesLists, valuesLists);
|
905
|
-
WRITE_LIST_FIELD(sort_clause, sortClause, sortClause);
|
906
|
-
WRITE_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset);
|
907
|
-
WRITE_NODE_PTR_FIELD(limit_count, limitCount, limitCount);
|
908
|
-
WRITE_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption);
|
909
|
-
WRITE_LIST_FIELD(locking_clause, lockingClause, lockingClause);
|
910
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
911
|
-
WRITE_ENUM_FIELD(SetOperation, op, op, op);
|
912
|
-
WRITE_BOOL_FIELD(all, all, all);
|
913
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, larg, larg, larg);
|
914
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, rarg, rarg, rarg);
|
1027
|
+
WRITE_NODE_PTR_FIELD(arg, arg, arg);
|
1028
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
1029
|
+
WRITE_INT_FIELD(location, location, location);
|
915
1030
|
}
|
916
1031
|
|
917
1032
|
static void
|
918
|
-
|
1033
|
+
_outCollateClause(OUT_TYPE(CollateClause, CollateClause) out, const CollateClause *node)
|
919
1034
|
{
|
920
|
-
WRITE_NODE_PTR_FIELD(
|
1035
|
+
WRITE_NODE_PTR_FIELD(arg, arg, arg);
|
1036
|
+
WRITE_LIST_FIELD(collname, collname, collname);
|
1037
|
+
WRITE_INT_FIELD(location, location, location);
|
921
1038
|
}
|
922
1039
|
|
923
1040
|
static void
|
924
|
-
|
1041
|
+
_outRoleSpec(OUT_TYPE(RoleSpec, RoleSpec) out, const RoleSpec *node)
|
925
1042
|
{
|
926
|
-
|
927
|
-
|
928
|
-
WRITE_INT_FIELD(nnames, nnames, nnames);
|
929
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, val, val, val);
|
1043
|
+
WRITE_ENUM_FIELD(RoleSpecType, roletype, roletype, roletype);
|
1044
|
+
WRITE_STRING_FIELD(rolename, rolename, rolename);
|
930
1045
|
WRITE_INT_FIELD(location, location, location);
|
931
1046
|
}
|
932
1047
|
|
933
1048
|
static void
|
934
|
-
|
1049
|
+
_outFuncCall(OUT_TYPE(FuncCall, FuncCall) out, const FuncCall *node)
|
935
1050
|
{
|
936
|
-
|
937
|
-
WRITE_LIST_FIELD(
|
938
|
-
|
939
|
-
|
1051
|
+
WRITE_LIST_FIELD(funcname, funcname, funcname);
|
1052
|
+
WRITE_LIST_FIELD(args, args, args);
|
1053
|
+
WRITE_LIST_FIELD(agg_order, agg_order, agg_order);
|
1054
|
+
WRITE_NODE_PTR_FIELD(agg_filter, agg_filter, agg_filter);
|
1055
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WindowDef, window_def, over, over, over);
|
1056
|
+
WRITE_BOOL_FIELD(agg_within_group, agg_within_group, agg_within_group);
|
1057
|
+
WRITE_BOOL_FIELD(agg_star, agg_star, agg_star);
|
1058
|
+
WRITE_BOOL_FIELD(agg_distinct, agg_distinct, agg_distinct);
|
1059
|
+
WRITE_BOOL_FIELD(func_variadic, func_variadic, func_variadic);
|
1060
|
+
WRITE_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat);
|
1061
|
+
WRITE_INT_FIELD(location, location, location);
|
940
1062
|
}
|
941
1063
|
|
942
1064
|
static void
|
943
|
-
|
1065
|
+
_outAStar(OUT_TYPE(A_Star, AStar) out, const A_Star *node)
|
944
1066
|
{
|
945
|
-
WRITE_ENUM_FIELD(AlterTableType, subtype, subtype, subtype);
|
946
|
-
WRITE_STRING_FIELD(name, name, name);
|
947
|
-
WRITE_INT_FIELD(num, num, num);
|
948
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner);
|
949
|
-
WRITE_NODE_PTR_FIELD(def, def, def);
|
950
|
-
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
951
|
-
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
952
|
-
WRITE_BOOL_FIELD(recurse, recurse, recurse);
|
953
1067
|
}
|
954
1068
|
|
955
1069
|
static void
|
956
|
-
|
1070
|
+
_outAIndices(OUT_TYPE(A_Indices, AIndices) out, const A_Indices *node)
|
957
1071
|
{
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
WRITE_NODE_PTR_FIELD(def, def, def);
|
962
|
-
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
963
|
-
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1072
|
+
WRITE_BOOL_FIELD(is_slice, is_slice, is_slice);
|
1073
|
+
WRITE_NODE_PTR_FIELD(lidx, lidx, lidx);
|
1074
|
+
WRITE_NODE_PTR_FIELD(uidx, uidx, uidx);
|
964
1075
|
}
|
965
1076
|
|
966
1077
|
static void
|
967
|
-
|
1078
|
+
_outAIndirection(OUT_TYPE(A_Indirection, AIndirection) out, const A_Indirection *node)
|
968
1079
|
{
|
969
|
-
|
970
|
-
|
971
|
-
WRITE_NODE_PTR_FIELD(larg, larg, larg);
|
972
|
-
WRITE_NODE_PTR_FIELD(rarg, rarg, rarg);
|
973
|
-
WRITE_LIST_FIELD(col_types, colTypes, colTypes);
|
974
|
-
WRITE_LIST_FIELD(col_typmods, colTypmods, colTypmods);
|
975
|
-
WRITE_LIST_FIELD(col_collations, colCollations, colCollations);
|
976
|
-
WRITE_LIST_FIELD(group_clauses, groupClauses, groupClauses);
|
1080
|
+
WRITE_NODE_PTR_FIELD(arg, arg, arg);
|
1081
|
+
WRITE_LIST_FIELD(indirection, indirection, indirection);
|
977
1082
|
}
|
978
1083
|
|
979
1084
|
static void
|
980
|
-
|
1085
|
+
_outAArrayExpr(OUT_TYPE(A_ArrayExpr, AArrayExpr) out, const A_ArrayExpr *node)
|
981
1086
|
{
|
982
|
-
|
983
|
-
|
984
|
-
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
985
|
-
WRITE_LIST_FIELD(objects, objects, objects);
|
986
|
-
WRITE_LIST_FIELD(privileges, privileges, privileges);
|
987
|
-
WRITE_LIST_FIELD(grantees, grantees, grantees);
|
988
|
-
WRITE_BOOL_FIELD(grant_option, grant_option, grant_option);
|
989
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor);
|
990
|
-
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1087
|
+
WRITE_LIST_FIELD(elements, elements, elements);
|
1088
|
+
WRITE_INT_FIELD(location, location, location);
|
991
1089
|
}
|
992
1090
|
|
993
1091
|
static void
|
994
|
-
|
1092
|
+
_outResTarget(OUT_TYPE(ResTarget, ResTarget) out, const ResTarget *node)
|
995
1093
|
{
|
996
|
-
|
997
|
-
WRITE_LIST_FIELD(
|
998
|
-
|
999
|
-
|
1000
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor);
|
1001
|
-
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1094
|
+
WRITE_STRING_FIELD(name, name, name);
|
1095
|
+
WRITE_LIST_FIELD(indirection, indirection, indirection);
|
1096
|
+
WRITE_NODE_PTR_FIELD(val, val, val);
|
1097
|
+
WRITE_INT_FIELD(location, location, location);
|
1002
1098
|
}
|
1003
1099
|
|
1004
1100
|
static void
|
1005
|
-
|
1101
|
+
_outMultiAssignRef(OUT_TYPE(MultiAssignRef, MultiAssignRef) out, const MultiAssignRef *node)
|
1006
1102
|
{
|
1007
|
-
|
1008
|
-
|
1103
|
+
WRITE_NODE_PTR_FIELD(source, source, source);
|
1104
|
+
WRITE_INT_FIELD(colno, colno, colno);
|
1105
|
+
WRITE_INT_FIELD(ncolumns, ncolumns, ncolumns);
|
1009
1106
|
}
|
1010
1107
|
|
1011
1108
|
static void
|
1012
|
-
|
1109
|
+
_outSortBy(OUT_TYPE(SortBy, SortBy) out, const SortBy *node)
|
1013
1110
|
{
|
1014
|
-
|
1111
|
+
WRITE_NODE_PTR_FIELD(node, node, node);
|
1112
|
+
WRITE_ENUM_FIELD(SortByDir, sortby_dir, sortby_dir, sortby_dir);
|
1113
|
+
WRITE_ENUM_FIELD(SortByNulls, sortby_nulls, sortby_nulls, sortby_nulls);
|
1114
|
+
WRITE_LIST_FIELD(use_op, useOp, useOp);
|
1115
|
+
WRITE_INT_FIELD(location, location, location);
|
1015
1116
|
}
|
1016
1117
|
|
1017
1118
|
static void
|
1018
|
-
|
1119
|
+
_outWindowDef(OUT_TYPE(WindowDef, WindowDef) out, const WindowDef *node)
|
1019
1120
|
{
|
1020
|
-
|
1021
|
-
WRITE_STRING_FIELD(
|
1022
|
-
WRITE_LIST_FIELD(
|
1121
|
+
WRITE_STRING_FIELD(name, name, name);
|
1122
|
+
WRITE_STRING_FIELD(refname, refname, refname);
|
1123
|
+
WRITE_LIST_FIELD(partition_clause, partitionClause, partitionClause);
|
1124
|
+
WRITE_LIST_FIELD(order_clause, orderClause, orderClause);
|
1125
|
+
WRITE_INT_FIELD(frame_options, frameOptions, frameOptions);
|
1126
|
+
WRITE_NODE_PTR_FIELD(start_offset, startOffset, startOffset);
|
1127
|
+
WRITE_NODE_PTR_FIELD(end_offset, endOffset, endOffset);
|
1128
|
+
WRITE_INT_FIELD(location, location, location);
|
1023
1129
|
}
|
1024
1130
|
|
1025
1131
|
static void
|
1026
|
-
|
1132
|
+
_outRangeSubselect(OUT_TYPE(RangeSubselect, RangeSubselect) out, const RangeSubselect *node)
|
1027
1133
|
{
|
1028
|
-
|
1029
|
-
WRITE_NODE_PTR_FIELD(
|
1030
|
-
|
1031
|
-
WRITE_BOOL_FIELD(is_from, is_from, is_from);
|
1032
|
-
WRITE_BOOL_FIELD(is_program, is_program, is_program);
|
1033
|
-
WRITE_STRING_FIELD(filename, filename, filename);
|
1034
|
-
WRITE_LIST_FIELD(options, options, options);
|
1035
|
-
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1134
|
+
WRITE_BOOL_FIELD(lateral, lateral, lateral);
|
1135
|
+
WRITE_NODE_PTR_FIELD(subquery, subquery, subquery);
|
1136
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
1036
1137
|
}
|
1037
1138
|
|
1038
1139
|
static void
|
1039
|
-
|
1140
|
+
_outRangeFunction(OUT_TYPE(RangeFunction, RangeFunction) out, const RangeFunction *node)
|
1040
1141
|
{
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1046
|
-
|
1047
|
-
WRITE_LIST_FIELD(constraints, constraints, constraints);
|
1048
|
-
WRITE_LIST_FIELD(options, options, options);
|
1049
|
-
WRITE_ENUM_FIELD(OnCommitAction, oncommit, oncommit, oncommit);
|
1050
|
-
WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename);
|
1051
|
-
WRITE_STRING_FIELD(access_method, accessMethod, accessMethod);
|
1052
|
-
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1142
|
+
WRITE_BOOL_FIELD(lateral, lateral, lateral);
|
1143
|
+
WRITE_BOOL_FIELD(ordinality, ordinality, ordinality);
|
1144
|
+
WRITE_BOOL_FIELD(is_rowsfrom, is_rowsfrom, is_rowsfrom);
|
1145
|
+
WRITE_LIST_FIELD(functions, functions, functions);
|
1146
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
1147
|
+
WRITE_LIST_FIELD(coldeflist, coldeflist, coldeflist);
|
1053
1148
|
}
|
1054
1149
|
|
1055
1150
|
static void
|
1056
|
-
|
1151
|
+
_outRangeTableFunc(OUT_TYPE(RangeTableFunc, RangeTableFunc) out, const RangeTableFunc *node)
|
1057
1152
|
{
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
WRITE_LIST_FIELD(
|
1062
|
-
WRITE_LIST_FIELD(
|
1063
|
-
|
1064
|
-
|
1153
|
+
WRITE_BOOL_FIELD(lateral, lateral, lateral);
|
1154
|
+
WRITE_NODE_PTR_FIELD(docexpr, docexpr, docexpr);
|
1155
|
+
WRITE_NODE_PTR_FIELD(rowexpr, rowexpr, rowexpr);
|
1156
|
+
WRITE_LIST_FIELD(namespaces, namespaces, namespaces);
|
1157
|
+
WRITE_LIST_FIELD(columns, columns, columns);
|
1158
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
1159
|
+
WRITE_INT_FIELD(location, location, location);
|
1065
1160
|
}
|
1066
1161
|
|
1067
1162
|
static void
|
1068
|
-
|
1163
|
+
_outRangeTableFuncCol(OUT_TYPE(RangeTableFuncCol, RangeTableFuncCol) out, const RangeTableFuncCol *node)
|
1069
1164
|
{
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
WRITE_BOOL_FIELD(
|
1074
|
-
|
1165
|
+
WRITE_STRING_FIELD(colname, colname, colname);
|
1166
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
1167
|
+
WRITE_BOOL_FIELD(for_ordinality, for_ordinality, for_ordinality);
|
1168
|
+
WRITE_BOOL_FIELD(is_not_null, is_not_null, is_not_null);
|
1169
|
+
WRITE_NODE_PTR_FIELD(colexpr, colexpr, colexpr);
|
1170
|
+
WRITE_NODE_PTR_FIELD(coldefexpr, coldefexpr, coldefexpr);
|
1171
|
+
WRITE_INT_FIELD(location, location, location);
|
1075
1172
|
}
|
1076
1173
|
|
1077
1174
|
static void
|
1078
|
-
|
1175
|
+
_outRangeTableSample(OUT_TYPE(RangeTableSample, RangeTableSample) out, const RangeTableSample *node)
|
1079
1176
|
{
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1177
|
+
WRITE_NODE_PTR_FIELD(relation, relation, relation);
|
1178
|
+
WRITE_LIST_FIELD(method, method, method);
|
1179
|
+
WRITE_LIST_FIELD(args, args, args);
|
1180
|
+
WRITE_NODE_PTR_FIELD(repeatable, repeatable, repeatable);
|
1181
|
+
WRITE_INT_FIELD(location, location, location);
|
1083
1182
|
}
|
1084
1183
|
|
1085
1184
|
static void
|
1086
|
-
|
1185
|
+
_outColumnDef(OUT_TYPE(ColumnDef, ColumnDef) out, const ColumnDef *node)
|
1087
1186
|
{
|
1088
|
-
|
1089
|
-
|
1090
|
-
WRITE_STRING_FIELD(
|
1187
|
+
WRITE_STRING_FIELD(colname, colname, colname);
|
1188
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
1189
|
+
WRITE_STRING_FIELD(compression, compression, compression);
|
1190
|
+
WRITE_INT_FIELD(inhcount, inhcount, inhcount);
|
1191
|
+
WRITE_BOOL_FIELD(is_local, is_local, is_local);
|
1192
|
+
WRITE_BOOL_FIELD(is_not_null, is_not_null, is_not_null);
|
1193
|
+
WRITE_BOOL_FIELD(is_from_type, is_from_type, is_from_type);
|
1194
|
+
WRITE_CHAR_FIELD(storage, storage, storage);
|
1195
|
+
WRITE_STRING_FIELD(storage_name, storage_name, storage_name);
|
1196
|
+
WRITE_NODE_PTR_FIELD(raw_default, raw_default, raw_default);
|
1197
|
+
WRITE_NODE_PTR_FIELD(cooked_default, cooked_default, cooked_default);
|
1198
|
+
WRITE_CHAR_FIELD(identity, identity, identity);
|
1199
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, identity_sequence, identitySequence, identitySequence);
|
1200
|
+
WRITE_CHAR_FIELD(generated, generated, generated);
|
1201
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause);
|
1202
|
+
WRITE_UINT_FIELD(coll_oid, collOid, collOid);
|
1203
|
+
WRITE_LIST_FIELD(constraints, constraints, constraints);
|
1204
|
+
WRITE_LIST_FIELD(fdwoptions, fdwoptions, fdwoptions);
|
1205
|
+
WRITE_INT_FIELD(location, location, location);
|
1091
1206
|
}
|
1092
1207
|
|
1093
1208
|
static void
|
1094
|
-
|
1209
|
+
_outTableLikeClause(OUT_TYPE(TableLikeClause, TableLikeClause) out, const TableLikeClause *node)
|
1095
1210
|
{
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
WRITE_BOOL_FIELD(ismove, ismove, ismove);
|
1211
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1212
|
+
WRITE_UINT_FIELD(options, options, options);
|
1213
|
+
WRITE_UINT_FIELD(relation_oid, relationOid, relationOid);
|
1100
1214
|
}
|
1101
1215
|
|
1102
1216
|
static void
|
1103
|
-
|
1217
|
+
_outIndexElem(OUT_TYPE(IndexElem, IndexElem) out, const IndexElem *node)
|
1104
1218
|
{
|
1105
|
-
WRITE_STRING_FIELD(
|
1106
|
-
|
1107
|
-
WRITE_STRING_FIELD(
|
1108
|
-
|
1109
|
-
WRITE_LIST_FIELD(
|
1110
|
-
WRITE_LIST_FIELD(
|
1111
|
-
|
1112
|
-
|
1113
|
-
WRITE_LIST_FIELD(exclude_op_names, excludeOpNames, excludeOpNames);
|
1114
|
-
WRITE_STRING_FIELD(idxcomment, idxcomment, idxcomment);
|
1115
|
-
WRITE_UINT_FIELD(index_oid, indexOid, indexOid);
|
1116
|
-
WRITE_UINT_FIELD(old_node, oldNode, oldNode);
|
1117
|
-
WRITE_UINT_FIELD(old_create_subid, oldCreateSubid, oldCreateSubid);
|
1118
|
-
WRITE_UINT_FIELD(old_first_relfilenode_subid, oldFirstRelfilenodeSubid, oldFirstRelfilenodeSubid);
|
1119
|
-
WRITE_BOOL_FIELD(unique, unique, unique);
|
1120
|
-
WRITE_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct);
|
1121
|
-
WRITE_BOOL_FIELD(primary, primary, primary);
|
1122
|
-
WRITE_BOOL_FIELD(isconstraint, isconstraint, isconstraint);
|
1123
|
-
WRITE_BOOL_FIELD(deferrable, deferrable, deferrable);
|
1124
|
-
WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred);
|
1125
|
-
WRITE_BOOL_FIELD(transformed, transformed, transformed);
|
1126
|
-
WRITE_BOOL_FIELD(concurrent, concurrent, concurrent);
|
1127
|
-
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1128
|
-
WRITE_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc);
|
1219
|
+
WRITE_STRING_FIELD(name, name, name);
|
1220
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
1221
|
+
WRITE_STRING_FIELD(indexcolname, indexcolname, indexcolname);
|
1222
|
+
WRITE_LIST_FIELD(collation, collation, collation);
|
1223
|
+
WRITE_LIST_FIELD(opclass, opclass, opclass);
|
1224
|
+
WRITE_LIST_FIELD(opclassopts, opclassopts, opclassopts);
|
1225
|
+
WRITE_ENUM_FIELD(SortByDir, ordering, ordering, ordering);
|
1226
|
+
WRITE_ENUM_FIELD(SortByNulls, nulls_ordering, nulls_ordering, nulls_ordering);
|
1129
1227
|
}
|
1130
1228
|
|
1131
1229
|
static void
|
1132
|
-
|
1230
|
+
_outDefElem(OUT_TYPE(DefElem, DefElem) out, const DefElem *node)
|
1133
1231
|
{
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
WRITE_LIST_FIELD(options, options, options);
|
1140
|
-
WRITE_NODE_PTR_FIELD(sql_body, sql_body, sql_body);
|
1232
|
+
WRITE_STRING_FIELD(defnamespace, defnamespace, defnamespace);
|
1233
|
+
WRITE_STRING_FIELD(defname, defname, defname);
|
1234
|
+
WRITE_NODE_PTR_FIELD(arg, arg, arg);
|
1235
|
+
WRITE_ENUM_FIELD(DefElemAction, defaction, defaction, defaction);
|
1236
|
+
WRITE_INT_FIELD(location, location, location);
|
1141
1237
|
}
|
1142
1238
|
|
1143
1239
|
static void
|
1144
|
-
|
1240
|
+
_outLockingClause(OUT_TYPE(LockingClause, LockingClause) out, const LockingClause *node)
|
1145
1241
|
{
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1242
|
+
WRITE_LIST_FIELD(locked_rels, lockedRels, lockedRels);
|
1243
|
+
WRITE_ENUM_FIELD(LockClauseStrength, strength, strength, strength);
|
1244
|
+
WRITE_ENUM_FIELD(LockWaitPolicy, wait_policy, waitPolicy, waitPolicy);
|
1149
1245
|
}
|
1150
1246
|
|
1151
1247
|
static void
|
1152
|
-
|
1248
|
+
_outXmlSerialize(OUT_TYPE(XmlSerialize, XmlSerialize) out, const XmlSerialize *node)
|
1153
1249
|
{
|
1154
|
-
|
1250
|
+
WRITE_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption);
|
1251
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
1252
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
1253
|
+
WRITE_BOOL_FIELD(indent, indent, indent);
|
1254
|
+
WRITE_INT_FIELD(location, location, location);
|
1155
1255
|
}
|
1156
1256
|
|
1157
1257
|
static void
|
1158
|
-
|
1258
|
+
_outPartitionElem(OUT_TYPE(PartitionElem, PartitionElem) out, const PartitionElem *node)
|
1159
1259
|
{
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
WRITE_STRING_FIELD(newname, newname, newname);
|
1166
|
-
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1167
|
-
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1260
|
+
WRITE_STRING_FIELD(name, name, name);
|
1261
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
1262
|
+
WRITE_LIST_FIELD(collation, collation, collation);
|
1263
|
+
WRITE_LIST_FIELD(opclass, opclass, opclass);
|
1264
|
+
WRITE_INT_FIELD(location, location, location);
|
1168
1265
|
}
|
1169
1266
|
|
1170
1267
|
static void
|
1171
|
-
|
1268
|
+
_outPartitionSpec(OUT_TYPE(PartitionSpec, PartitionSpec) out, const PartitionSpec *node)
|
1172
1269
|
{
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
WRITE_ENUM_FIELD(CmdType, event, event, event);
|
1177
|
-
WRITE_BOOL_FIELD(instead, instead, instead);
|
1178
|
-
WRITE_LIST_FIELD(actions, actions, actions);
|
1179
|
-
WRITE_BOOL_FIELD(replace, replace, replace);
|
1270
|
+
WRITE_ENUM_FIELD(PartitionStrategy, strategy, strategy, strategy);
|
1271
|
+
WRITE_LIST_FIELD(part_params, partParams, partParams);
|
1272
|
+
WRITE_INT_FIELD(location, location, location);
|
1180
1273
|
}
|
1181
1274
|
|
1182
1275
|
static void
|
1183
|
-
|
1276
|
+
_outPartitionBoundSpec(OUT_TYPE(PartitionBoundSpec, PartitionBoundSpec) out, const PartitionBoundSpec *node)
|
1184
1277
|
{
|
1185
|
-
|
1186
|
-
|
1278
|
+
WRITE_CHAR_FIELD(strategy, strategy, strategy);
|
1279
|
+
WRITE_BOOL_FIELD(is_default, is_default, is_default);
|
1280
|
+
WRITE_INT_FIELD(modulus, modulus, modulus);
|
1281
|
+
WRITE_INT_FIELD(remainder, remainder, remainder);
|
1282
|
+
WRITE_LIST_FIELD(listdatums, listdatums, listdatums);
|
1283
|
+
WRITE_LIST_FIELD(lowerdatums, lowerdatums, lowerdatums);
|
1284
|
+
WRITE_LIST_FIELD(upperdatums, upperdatums, upperdatums);
|
1285
|
+
WRITE_INT_FIELD(location, location, location);
|
1187
1286
|
}
|
1188
1287
|
|
1189
1288
|
static void
|
1190
|
-
|
1289
|
+
_outPartitionRangeDatum(OUT_TYPE(PartitionRangeDatum, PartitionRangeDatum) out, const PartitionRangeDatum *node)
|
1191
1290
|
{
|
1192
|
-
|
1291
|
+
WRITE_ENUM_FIELD(PartitionRangeDatumKind, kind, kind, kind);
|
1292
|
+
WRITE_NODE_PTR_FIELD(value, value, value);
|
1293
|
+
WRITE_INT_FIELD(location, location, location);
|
1193
1294
|
}
|
1194
1295
|
|
1195
1296
|
static void
|
1196
|
-
|
1297
|
+
_outSinglePartitionSpec(OUT_TYPE(SinglePartitionSpec, SinglePartitionSpec) out, const SinglePartitionSpec *node)
|
1197
1298
|
{
|
1198
|
-
WRITE_STRING_FIELD(conditionname, conditionname, conditionname);
|
1199
1299
|
}
|
1200
1300
|
|
1201
1301
|
static void
|
1202
|
-
|
1302
|
+
_outPartitionCmd(OUT_TYPE(PartitionCmd, PartitionCmd) out, const PartitionCmd *node)
|
1203
1303
|
{
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
WRITE_STRING_FIELD(gid, gid, gid);
|
1208
|
-
WRITE_BOOL_FIELD(chain, chain, chain);
|
1304
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, name, name, name);
|
1305
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(PartitionBoundSpec, partition_bound_spec, bound, bound, bound);
|
1306
|
+
WRITE_BOOL_FIELD(concurrent, concurrent, concurrent);
|
1209
1307
|
}
|
1210
1308
|
|
1211
1309
|
static void
|
1212
|
-
|
1310
|
+
_outRangeTblEntry(OUT_TYPE(RangeTblEntry, RangeTblEntry) out, const RangeTblEntry *node)
|
1213
1311
|
{
|
1214
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1312
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
1313
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, eref, eref, eref);
|
1314
|
+
WRITE_ENUM_FIELD(RTEKind, rtekind, rtekind, rtekind);
|
1315
|
+
WRITE_UINT_FIELD(relid, relid, relid);
|
1316
|
+
WRITE_BOOL_FIELD(inh, inh, inh);
|
1317
|
+
WRITE_CHAR_FIELD(relkind, relkind, relkind);
|
1318
|
+
WRITE_INT_FIELD(rellockmode, rellockmode, rellockmode);
|
1319
|
+
WRITE_UINT_FIELD(perminfoindex, perminfoindex, perminfoindex);
|
1320
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TableSampleClause, table_sample_clause, tablesample, tablesample, tablesample);
|
1321
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Query, query, subquery, subquery, subquery);
|
1322
|
+
WRITE_BOOL_FIELD(security_barrier, security_barrier, security_barrier);
|
1323
|
+
WRITE_ENUM_FIELD(JoinType, jointype, jointype, jointype);
|
1324
|
+
WRITE_INT_FIELD(joinmergedcols, joinmergedcols, joinmergedcols);
|
1325
|
+
WRITE_LIST_FIELD(joinaliasvars, joinaliasvars, joinaliasvars);
|
1326
|
+
WRITE_LIST_FIELD(joinleftcols, joinleftcols, joinleftcols);
|
1327
|
+
WRITE_LIST_FIELD(joinrightcols, joinrightcols, joinrightcols);
|
1328
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias);
|
1329
|
+
WRITE_LIST_FIELD(functions, functions, functions);
|
1330
|
+
WRITE_BOOL_FIELD(funcordinality, funcordinality, funcordinality);
|
1331
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TableFunc, table_func, tablefunc, tablefunc, tablefunc);
|
1332
|
+
WRITE_LIST_FIELD(values_lists, values_lists, values_lists);
|
1333
|
+
WRITE_STRING_FIELD(ctename, ctename, ctename);
|
1334
|
+
WRITE_UINT_FIELD(ctelevelsup, ctelevelsup, ctelevelsup);
|
1335
|
+
WRITE_BOOL_FIELD(self_reference, self_reference, self_reference);
|
1336
|
+
WRITE_LIST_FIELD(coltypes, coltypes, coltypes);
|
1337
|
+
WRITE_LIST_FIELD(coltypmods, coltypmods, coltypmods);
|
1338
|
+
WRITE_LIST_FIELD(colcollations, colcollations, colcollations);
|
1339
|
+
WRITE_STRING_FIELD(enrname, enrname, enrname);
|
1340
|
+
WRITE_FLOAT_FIELD(enrtuples, enrtuples, enrtuples);
|
1341
|
+
WRITE_BOOL_FIELD(lateral, lateral, lateral);
|
1342
|
+
WRITE_BOOL_FIELD(in_from_cl, inFromCl, inFromCl);
|
1343
|
+
WRITE_LIST_FIELD(security_quals, securityQuals, securityQuals);
|
1220
1344
|
}
|
1221
1345
|
|
1222
1346
|
static void
|
1223
|
-
|
1347
|
+
_outRTEPermissionInfo(OUT_TYPE(RTEPermissionInfo, RTEPermissionInfo) out, const RTEPermissionInfo *node)
|
1224
1348
|
{
|
1225
|
-
|
1349
|
+
WRITE_UINT_FIELD(relid, relid, relid);
|
1350
|
+
WRITE_BOOL_FIELD(inh, inh, inh);
|
1351
|
+
WRITE_UINT64_FIELD(required_perms, requiredPerms, requiredPerms);
|
1352
|
+
WRITE_UINT_FIELD(check_as_user, checkAsUser, checkAsUser);
|
1353
|
+
WRITE_BITMAPSET_FIELD(selected_cols, selectedCols, selectedCols);
|
1354
|
+
WRITE_BITMAPSET_FIELD(inserted_cols, insertedCols, insertedCols);
|
1355
|
+
WRITE_BITMAPSET_FIELD(updated_cols, updatedCols, updatedCols);
|
1226
1356
|
}
|
1227
1357
|
|
1228
1358
|
static void
|
1229
|
-
|
1359
|
+
_outRangeTblFunction(OUT_TYPE(RangeTblFunction, RangeTblFunction) out, const RangeTblFunction *node)
|
1230
1360
|
{
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
WRITE_LIST_FIELD(
|
1361
|
+
WRITE_NODE_PTR_FIELD(funcexpr, funcexpr, funcexpr);
|
1362
|
+
WRITE_INT_FIELD(funccolcount, funccolcount, funccolcount);
|
1363
|
+
WRITE_LIST_FIELD(funccolnames, funccolnames, funccolnames);
|
1364
|
+
WRITE_LIST_FIELD(funccoltypes, funccoltypes, funccoltypes);
|
1365
|
+
WRITE_LIST_FIELD(funccoltypmods, funccoltypmods, funccoltypmods);
|
1366
|
+
WRITE_LIST_FIELD(funccolcollations, funccolcollations, funccolcollations);
|
1367
|
+
WRITE_BITMAPSET_FIELD(funcparams, funcparams, funcparams);
|
1235
1368
|
}
|
1236
1369
|
|
1237
1370
|
static void
|
1238
|
-
|
1371
|
+
_outTableSampleClause(OUT_TYPE(TableSampleClause, TableSampleClause) out, const TableSampleClause *node)
|
1239
1372
|
{
|
1240
|
-
|
1241
|
-
WRITE_LIST_FIELD(
|
1373
|
+
WRITE_UINT_FIELD(tsmhandler, tsmhandler, tsmhandler);
|
1374
|
+
WRITE_LIST_FIELD(args, args, args);
|
1375
|
+
WRITE_NODE_PTR_FIELD(repeatable, repeatable, repeatable);
|
1242
1376
|
}
|
1243
1377
|
|
1244
1378
|
static void
|
1245
|
-
|
1379
|
+
_outWithCheckOption(OUT_TYPE(WithCheckOption, WithCheckOption) out, const WithCheckOption *node)
|
1246
1380
|
{
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1381
|
+
WRITE_ENUM_FIELD(WCOKind, kind, kind, kind);
|
1382
|
+
WRITE_STRING_FIELD(relname, relname, relname);
|
1383
|
+
WRITE_STRING_FIELD(polname, polname, polname);
|
1384
|
+
WRITE_NODE_PTR_FIELD(qual, qual, qual);
|
1385
|
+
WRITE_BOOL_FIELD(cascaded, cascaded, cascaded);
|
1250
1386
|
}
|
1251
1387
|
|
1252
1388
|
static void
|
1253
|
-
|
1389
|
+
_outSortGroupClause(OUT_TYPE(SortGroupClause, SortGroupClause) out, const SortGroupClause *node)
|
1254
1390
|
{
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1391
|
+
WRITE_UINT_FIELD(tle_sort_group_ref, tleSortGroupRef, tleSortGroupRef);
|
1392
|
+
WRITE_UINT_FIELD(eqop, eqop, eqop);
|
1393
|
+
WRITE_UINT_FIELD(sortop, sortop, sortop);
|
1394
|
+
WRITE_BOOL_FIELD(nulls_first, nulls_first, nulls_first);
|
1395
|
+
WRITE_BOOL_FIELD(hashable, hashable, hashable);
|
1258
1396
|
}
|
1259
1397
|
|
1260
1398
|
static void
|
1261
|
-
|
1399
|
+
_outGroupingSet(OUT_TYPE(GroupingSet, GroupingSet) out, const GroupingSet *node)
|
1262
1400
|
{
|
1263
|
-
|
1264
|
-
WRITE_LIST_FIELD(
|
1401
|
+
WRITE_ENUM_FIELD(GroupingSetKind, kind, kind, kind);
|
1402
|
+
WRITE_LIST_FIELD(content, content, content);
|
1403
|
+
WRITE_INT_FIELD(location, location, location);
|
1265
1404
|
}
|
1266
1405
|
|
1267
1406
|
static void
|
1268
|
-
|
1407
|
+
_outWindowClause(OUT_TYPE(WindowClause, WindowClause) out, const WindowClause *node)
|
1269
1408
|
{
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1409
|
+
WRITE_STRING_FIELD(name, name, name);
|
1410
|
+
WRITE_STRING_FIELD(refname, refname, refname);
|
1411
|
+
WRITE_LIST_FIELD(partition_clause, partitionClause, partitionClause);
|
1412
|
+
WRITE_LIST_FIELD(order_clause, orderClause, orderClause);
|
1413
|
+
WRITE_INT_FIELD(frame_options, frameOptions, frameOptions);
|
1414
|
+
WRITE_NODE_PTR_FIELD(start_offset, startOffset, startOffset);
|
1415
|
+
WRITE_NODE_PTR_FIELD(end_offset, endOffset, endOffset);
|
1416
|
+
WRITE_UINT_FIELD(start_in_range_func, startInRangeFunc, startInRangeFunc);
|
1417
|
+
WRITE_UINT_FIELD(end_in_range_func, endInRangeFunc, endInRangeFunc);
|
1418
|
+
WRITE_UINT_FIELD(in_range_coll, inRangeColl, inRangeColl);
|
1419
|
+
WRITE_BOOL_FIELD(in_range_asc, inRangeAsc, inRangeAsc);
|
1420
|
+
WRITE_BOOL_FIELD(in_range_nulls_first, inRangeNullsFirst, inRangeNullsFirst);
|
1421
|
+
WRITE_UINT_FIELD(winref, winref, winref);
|
1422
|
+
WRITE_BOOL_FIELD(copied_order, copiedOrder, copiedOrder);
|
1275
1423
|
}
|
1276
1424
|
|
1277
1425
|
static void
|
1278
|
-
|
1426
|
+
_outRowMarkClause(OUT_TYPE(RowMarkClause, RowMarkClause) out, const RowMarkClause *node)
|
1279
1427
|
{
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
WRITE_BOOL_FIELD(
|
1284
|
-
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1428
|
+
WRITE_UINT_FIELD(rti, rti, rti);
|
1429
|
+
WRITE_ENUM_FIELD(LockClauseStrength, strength, strength, strength);
|
1430
|
+
WRITE_ENUM_FIELD(LockWaitPolicy, wait_policy, waitPolicy, waitPolicy);
|
1431
|
+
WRITE_BOOL_FIELD(pushed_down, pushedDown, pushedDown);
|
1285
1432
|
}
|
1286
1433
|
|
1287
1434
|
static void
|
1288
|
-
|
1435
|
+
_outWithClause(OUT_TYPE(WithClause, WithClause) out, const WithClause *node)
|
1289
1436
|
{
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1437
|
+
WRITE_LIST_FIELD(ctes, ctes, ctes);
|
1438
|
+
WRITE_BOOL_FIELD(recursive, recursive, recursive);
|
1439
|
+
WRITE_INT_FIELD(location, location, location);
|
1294
1440
|
}
|
1295
1441
|
|
1296
1442
|
static void
|
1297
|
-
|
1443
|
+
_outInferClause(OUT_TYPE(InferClause, InferClause) out, const InferClause *node)
|
1298
1444
|
{
|
1299
|
-
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1445
|
+
WRITE_LIST_FIELD(index_elems, indexElems, indexElems);
|
1446
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1447
|
+
WRITE_STRING_FIELD(conname, conname, conname);
|
1448
|
+
WRITE_INT_FIELD(location, location, location);
|
1303
1449
|
}
|
1304
1450
|
|
1305
1451
|
static void
|
1306
|
-
|
1452
|
+
_outOnConflictClause(OUT_TYPE(OnConflictClause, OnConflictClause) out, const OnConflictClause *node)
|
1307
1453
|
{
|
1308
|
-
|
1454
|
+
WRITE_ENUM_FIELD(OnConflictAction, action, action, action);
|
1455
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(InferClause, infer_clause, infer, infer, infer);
|
1456
|
+
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
1457
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1458
|
+
WRITE_INT_FIELD(location, location, location);
|
1309
1459
|
}
|
1310
1460
|
|
1311
1461
|
static void
|
1312
|
-
|
1462
|
+
_outCTESearchClause(OUT_TYPE(CTESearchClause, CTESearchClause) out, const CTESearchClause *node)
|
1313
1463
|
{
|
1314
|
-
|
1464
|
+
WRITE_LIST_FIELD(search_col_list, search_col_list, search_col_list);
|
1465
|
+
WRITE_BOOL_FIELD(search_breadth_first, search_breadth_first, search_breadth_first);
|
1466
|
+
WRITE_STRING_FIELD(search_seq_column, search_seq_column, search_seq_column);
|
1467
|
+
WRITE_INT_FIELD(location, location, location);
|
1315
1468
|
}
|
1316
1469
|
|
1317
1470
|
static void
|
1318
|
-
|
1471
|
+
_outCTECycleClause(OUT_TYPE(CTECycleClause, CTECycleClause) out, const CTECycleClause *node)
|
1319
1472
|
{
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
|
1326
|
-
|
1327
|
-
WRITE_INT_FIELD(
|
1328
|
-
|
1329
|
-
|
1330
|
-
WRITE_NODE_PTR_FIELD(when_clause, whenClause, whenClause);
|
1331
|
-
WRITE_LIST_FIELD(transition_rels, transitionRels, transitionRels);
|
1332
|
-
WRITE_BOOL_FIELD(deferrable, deferrable, deferrable);
|
1333
|
-
WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred);
|
1334
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, constrrel, constrrel, constrrel);
|
1473
|
+
WRITE_LIST_FIELD(cycle_col_list, cycle_col_list, cycle_col_list);
|
1474
|
+
WRITE_STRING_FIELD(cycle_mark_column, cycle_mark_column, cycle_mark_column);
|
1475
|
+
WRITE_NODE_PTR_FIELD(cycle_mark_value, cycle_mark_value, cycle_mark_value);
|
1476
|
+
WRITE_NODE_PTR_FIELD(cycle_mark_default, cycle_mark_default, cycle_mark_default);
|
1477
|
+
WRITE_STRING_FIELD(cycle_path_column, cycle_path_column, cycle_path_column);
|
1478
|
+
WRITE_INT_FIELD(location, location, location);
|
1479
|
+
WRITE_UINT_FIELD(cycle_mark_type, cycle_mark_type, cycle_mark_type);
|
1480
|
+
WRITE_INT_FIELD(cycle_mark_typmod, cycle_mark_typmod, cycle_mark_typmod);
|
1481
|
+
WRITE_UINT_FIELD(cycle_mark_collation, cycle_mark_collation, cycle_mark_collation);
|
1482
|
+
WRITE_UINT_FIELD(cycle_mark_neop, cycle_mark_neop, cycle_mark_neop);
|
1335
1483
|
}
|
1336
1484
|
|
1337
1485
|
static void
|
1338
|
-
|
1486
|
+
_outCommonTableExpr(OUT_TYPE(CommonTableExpr, CommonTableExpr) out, const CommonTableExpr *node)
|
1339
1487
|
{
|
1340
|
-
|
1341
|
-
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1488
|
+
WRITE_STRING_FIELD(ctename, ctename, ctename);
|
1489
|
+
WRITE_LIST_FIELD(aliascolnames, aliascolnames, aliascolnames);
|
1490
|
+
WRITE_ENUM_FIELD(CTEMaterialize, ctematerialized, ctematerialized, ctematerialized);
|
1491
|
+
WRITE_NODE_PTR_FIELD(ctequery, ctequery, ctequery);
|
1492
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(CTESearchClause, ctesearch_clause, search_clause, search_clause, search_clause);
|
1493
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(CTECycleClause, ctecycle_clause, cycle_clause, cycle_clause, cycle_clause);
|
1494
|
+
WRITE_INT_FIELD(location, location, location);
|
1495
|
+
WRITE_BOOL_FIELD(cterecursive, cterecursive, cterecursive);
|
1496
|
+
WRITE_INT_FIELD(cterefcount, cterefcount, cterefcount);
|
1497
|
+
WRITE_LIST_FIELD(ctecolnames, ctecolnames, ctecolnames);
|
1498
|
+
WRITE_LIST_FIELD(ctecoltypes, ctecoltypes, ctecoltypes);
|
1499
|
+
WRITE_LIST_FIELD(ctecoltypmods, ctecoltypmods, ctecoltypmods);
|
1500
|
+
WRITE_LIST_FIELD(ctecolcollations, ctecolcollations, ctecolcollations);
|
1346
1501
|
}
|
1347
1502
|
|
1348
1503
|
static void
|
1349
|
-
|
1504
|
+
_outMergeWhenClause(OUT_TYPE(MergeWhenClause, MergeWhenClause) out, const MergeWhenClause *node)
|
1350
1505
|
{
|
1351
|
-
WRITE_ENUM_FIELD(
|
1352
|
-
|
1353
|
-
|
1506
|
+
WRITE_ENUM_FIELD(MergeMatchKind, match_kind, matchKind, matchKind);
|
1507
|
+
WRITE_ENUM_FIELD(CmdType, command_type, commandType, commandType);
|
1508
|
+
WRITE_ENUM_FIELD(OverridingKind, override, override, override);
|
1509
|
+
WRITE_NODE_PTR_FIELD(condition, condition, condition);
|
1510
|
+
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
1511
|
+
WRITE_LIST_FIELD(values, values, values);
|
1354
1512
|
}
|
1355
1513
|
|
1356
1514
|
static void
|
1357
|
-
|
1515
|
+
_outTriggerTransition(OUT_TYPE(TriggerTransition, TriggerTransition) out, const TriggerTransition *node)
|
1358
1516
|
{
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1517
|
+
WRITE_STRING_FIELD(name, name, name);
|
1518
|
+
WRITE_BOOL_FIELD(is_new, isNew, isNew);
|
1519
|
+
WRITE_BOOL_FIELD(is_table, isTable, isTable);
|
1362
1520
|
}
|
1363
1521
|
|
1364
1522
|
static void
|
1365
|
-
|
1523
|
+
_outJsonOutput(OUT_TYPE(JsonOutput, JsonOutput) out, const JsonOutput *node)
|
1366
1524
|
{
|
1367
|
-
|
1368
|
-
|
1525
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
1526
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonReturning, json_returning, returning, returning, returning);
|
1369
1527
|
}
|
1370
1528
|
|
1371
1529
|
static void
|
1372
|
-
|
1530
|
+
_outJsonArgument(OUT_TYPE(JsonArgument, JsonArgument) out, const JsonArgument *node)
|
1373
1531
|
{
|
1374
|
-
|
1375
|
-
|
1376
|
-
WRITE_BOOL_FIELD(nowait, nowait, nowait);
|
1532
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, val, val, val);
|
1533
|
+
WRITE_STRING_FIELD(name, name, name);
|
1377
1534
|
}
|
1378
1535
|
|
1379
1536
|
static void
|
1380
|
-
|
1537
|
+
_outJsonFuncExpr(OUT_TYPE(JsonFuncExpr, JsonFuncExpr) out, const JsonFuncExpr *node)
|
1381
1538
|
{
|
1382
|
-
|
1383
|
-
|
1539
|
+
WRITE_ENUM_FIELD(JsonExprOp, op, op, op);
|
1540
|
+
WRITE_STRING_FIELD(column_name, column_name, column_name);
|
1541
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, context_item, context_item, context_item);
|
1542
|
+
WRITE_NODE_PTR_FIELD(pathspec, pathspec, pathspec);
|
1543
|
+
WRITE_LIST_FIELD(passing, passing, passing);
|
1544
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1545
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_empty, on_empty, on_empty);
|
1546
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_error, on_error, on_error);
|
1547
|
+
WRITE_ENUM_FIELD(JsonWrapper, wrapper, wrapper, wrapper);
|
1548
|
+
WRITE_ENUM_FIELD(JsonQuotes, quotes, quotes, quotes);
|
1549
|
+
WRITE_INT_FIELD(location, location, location);
|
1384
1550
|
}
|
1385
1551
|
|
1386
1552
|
static void
|
1387
|
-
|
1553
|
+
_outJsonTablePathSpec(OUT_TYPE(JsonTablePathSpec, JsonTablePathSpec) out, const JsonTablePathSpec *node)
|
1388
1554
|
{
|
1389
|
-
|
1390
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1555
|
+
WRITE_NODE_PTR_FIELD(string, string, string);
|
1391
1556
|
WRITE_STRING_FIELD(name, name, name);
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
static void
|
1396
|
-
_outCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) out, const CheckPointStmt *node)
|
1397
|
-
{
|
1557
|
+
WRITE_INT_FIELD(name_location, name_location, name_location);
|
1558
|
+
WRITE_INT_FIELD(location, location, location);
|
1398
1559
|
}
|
1399
1560
|
|
1400
1561
|
static void
|
1401
|
-
|
1562
|
+
_outJsonTable(OUT_TYPE(JsonTable, JsonTable) out, const JsonTable *node)
|
1402
1563
|
{
|
1403
|
-
|
1404
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1405
|
-
WRITE_LIST_FIELD(
|
1406
|
-
|
1564
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, context_item, context_item, context_item);
|
1565
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonTablePathSpec, json_table_path_spec, pathspec, pathspec, pathspec);
|
1566
|
+
WRITE_LIST_FIELD(passing, passing, passing);
|
1567
|
+
WRITE_LIST_FIELD(columns, columns, columns);
|
1568
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_error, on_error, on_error);
|
1569
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
1570
|
+
WRITE_BOOL_FIELD(lateral, lateral, lateral);
|
1571
|
+
WRITE_INT_FIELD(location, location, location);
|
1407
1572
|
}
|
1408
1573
|
|
1409
1574
|
static void
|
1410
|
-
|
1575
|
+
_outJsonTableColumn(OUT_TYPE(JsonTableColumn, JsonTableColumn) out, const JsonTableColumn *node)
|
1411
1576
|
{
|
1412
|
-
|
1413
|
-
|
1577
|
+
WRITE_ENUM_FIELD(JsonTableColumnType, coltype, coltype, coltype);
|
1578
|
+
WRITE_STRING_FIELD(name, name, name);
|
1579
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
1580
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonTablePathSpec, json_table_path_spec, pathspec, pathspec, pathspec);
|
1581
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonFormat, json_format, format, format, format);
|
1582
|
+
WRITE_ENUM_FIELD(JsonWrapper, wrapper, wrapper, wrapper);
|
1583
|
+
WRITE_ENUM_FIELD(JsonQuotes, quotes, quotes, quotes);
|
1584
|
+
WRITE_LIST_FIELD(columns, columns, columns);
|
1585
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_empty, on_empty, on_empty);
|
1586
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonBehavior, json_behavior, on_error, on_error, on_error);
|
1587
|
+
WRITE_INT_FIELD(location, location, location);
|
1414
1588
|
}
|
1415
1589
|
|
1416
1590
|
static void
|
1417
|
-
|
1591
|
+
_outJsonKeyValue(OUT_TYPE(JsonKeyValue, JsonKeyValue) out, const JsonKeyValue *node)
|
1418
1592
|
{
|
1419
|
-
|
1593
|
+
WRITE_NODE_PTR_FIELD(key, key, key);
|
1594
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, value, value, value);
|
1420
1595
|
}
|
1421
1596
|
|
1422
1597
|
static void
|
1423
|
-
|
1598
|
+
_outJsonParseExpr(OUT_TYPE(JsonParseExpr, JsonParseExpr) out, const JsonParseExpr *node)
|
1424
1599
|
{
|
1425
|
-
|
1426
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1600
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, expr, expr, expr);
|
1601
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1602
|
+
WRITE_BOOL_FIELD(unique_keys, unique_keys, unique_keys);
|
1603
|
+
WRITE_INT_FIELD(location, location, location);
|
1427
1604
|
}
|
1428
1605
|
|
1429
1606
|
static void
|
1430
|
-
|
1607
|
+
_outJsonScalarExpr(OUT_TYPE(JsonScalarExpr, JsonScalarExpr) out, const JsonScalarExpr *node)
|
1431
1608
|
{
|
1432
|
-
|
1433
|
-
|
1434
|
-
|
1609
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
1610
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1611
|
+
WRITE_INT_FIELD(location, location, location);
|
1435
1612
|
}
|
1436
1613
|
|
1437
1614
|
static void
|
1438
|
-
|
1615
|
+
_outJsonSerializeExpr(OUT_TYPE(JsonSerializeExpr, JsonSerializeExpr) out, const JsonSerializeExpr *node)
|
1439
1616
|
{
|
1440
|
-
|
1441
|
-
|
1442
|
-
|
1443
|
-
WRITE_LIST_FIELD(func_name, func_name, func_name);
|
1444
|
-
WRITE_BOOL_FIELD(def, def, def);
|
1617
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, expr, expr, expr);
|
1618
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1619
|
+
WRITE_INT_FIELD(location, location, location);
|
1445
1620
|
}
|
1446
1621
|
|
1447
1622
|
static void
|
1448
|
-
|
1623
|
+
_outJsonObjectConstructor(OUT_TYPE(JsonObjectConstructor, JsonObjectConstructor) out, const JsonObjectConstructor *node)
|
1449
1624
|
{
|
1450
|
-
|
1451
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1452
|
-
|
1453
|
-
|
1454
|
-
|
1625
|
+
WRITE_LIST_FIELD(exprs, exprs, exprs);
|
1626
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1627
|
+
WRITE_BOOL_FIELD(absent_on_null, absent_on_null, absent_on_null);
|
1628
|
+
WRITE_BOOL_FIELD(unique, unique, unique);
|
1629
|
+
WRITE_INT_FIELD(location, location, location);
|
1455
1630
|
}
|
1456
1631
|
|
1457
1632
|
static void
|
1458
|
-
|
1633
|
+
_outJsonArrayConstructor(OUT_TYPE(JsonArrayConstructor, JsonArrayConstructor) out, const JsonArrayConstructor *node)
|
1459
1634
|
{
|
1460
|
-
WRITE_LIST_FIELD(
|
1461
|
-
|
1462
|
-
|
1463
|
-
|
1464
|
-
WRITE_LIST_FIELD(items, items, items);
|
1465
|
-
WRITE_BOOL_FIELD(is_default, isDefault, isDefault);
|
1635
|
+
WRITE_LIST_FIELD(exprs, exprs, exprs);
|
1636
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1637
|
+
WRITE_BOOL_FIELD(absent_on_null, absent_on_null, absent_on_null);
|
1638
|
+
WRITE_INT_FIELD(location, location, location);
|
1466
1639
|
}
|
1467
1640
|
|
1468
1641
|
static void
|
1469
|
-
|
1642
|
+
_outJsonArrayQueryConstructor(OUT_TYPE(JsonArrayQueryConstructor, JsonArrayQueryConstructor) out, const JsonArrayQueryConstructor *node)
|
1470
1643
|
{
|
1471
|
-
|
1472
|
-
|
1644
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
1645
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1646
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonFormat, json_format, format, format, format);
|
1647
|
+
WRITE_BOOL_FIELD(absent_on_null, absent_on_null, absent_on_null);
|
1648
|
+
WRITE_INT_FIELD(location, location, location);
|
1473
1649
|
}
|
1474
1650
|
|
1475
1651
|
static void
|
1476
|
-
|
1652
|
+
_outJsonAggConstructor(OUT_TYPE(JsonAggConstructor, JsonAggConstructor) out, const JsonAggConstructor *node)
|
1477
1653
|
{
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1481
|
-
|
1654
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonOutput, json_output, output, output, output);
|
1655
|
+
WRITE_NODE_PTR_FIELD(agg_filter, agg_filter, agg_filter);
|
1656
|
+
WRITE_LIST_FIELD(agg_order, agg_order, agg_order);
|
1657
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WindowDef, window_def, over, over, over);
|
1658
|
+
WRITE_INT_FIELD(location, location, location);
|
1482
1659
|
}
|
1483
1660
|
|
1484
1661
|
static void
|
1485
|
-
|
1662
|
+
_outJsonObjectAgg(OUT_TYPE(JsonObjectAgg, JsonObjectAgg) out, const JsonObjectAgg *node)
|
1486
1663
|
{
|
1487
|
-
|
1488
|
-
|
1489
|
-
|
1664
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonAggConstructor, json_agg_constructor, constructor, constructor, constructor);
|
1665
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonKeyValue, json_key_value, arg, arg, arg);
|
1666
|
+
WRITE_BOOL_FIELD(absent_on_null, absent_on_null, absent_on_null);
|
1667
|
+
WRITE_BOOL_FIELD(unique, unique, unique);
|
1490
1668
|
}
|
1491
1669
|
|
1492
1670
|
static void
|
1493
|
-
|
1671
|
+
_outJsonArrayAgg(OUT_TYPE(JsonArrayAgg, JsonArrayAgg) out, const JsonArrayAgg *node)
|
1494
1672
|
{
|
1495
|
-
|
1496
|
-
|
1673
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonAggConstructor, json_agg_constructor, constructor, constructor, constructor);
|
1674
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(JsonValueExpr, json_value_expr, arg, arg, arg);
|
1675
|
+
WRITE_BOOL_FIELD(absent_on_null, absent_on_null, absent_on_null);
|
1497
1676
|
}
|
1498
1677
|
|
1499
1678
|
static void
|
1500
|
-
|
1679
|
+
_outRawStmt(OUT_TYPE(RawStmt, RawStmt) out, const RawStmt *node)
|
1501
1680
|
{
|
1502
|
-
|
1681
|
+
WRITE_NODE_PTR_FIELD(stmt, stmt, stmt);
|
1682
|
+
WRITE_INT_FIELD(stmt_location, stmt_location, stmt_location);
|
1683
|
+
WRITE_INT_FIELD(stmt_len, stmt_len, stmt_len);
|
1503
1684
|
}
|
1504
1685
|
|
1505
1686
|
static void
|
1506
|
-
|
1687
|
+
_outInsertStmt(OUT_TYPE(InsertStmt, InsertStmt) out, const InsertStmt *node)
|
1507
1688
|
{
|
1508
|
-
|
1509
|
-
|
1510
|
-
WRITE_NODE_PTR_FIELD(
|
1689
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1690
|
+
WRITE_LIST_FIELD(cols, cols, cols);
|
1691
|
+
WRITE_NODE_PTR_FIELD(select_stmt, selectStmt, selectStmt);
|
1692
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(OnConflictClause, on_conflict_clause, on_conflict_clause, onConflictClause, onConflictClause);
|
1693
|
+
WRITE_LIST_FIELD(returning_list, returningList, returningList);
|
1694
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1695
|
+
WRITE_ENUM_FIELD(OverridingKind, override, override, override);
|
1511
1696
|
}
|
1512
1697
|
|
1513
1698
|
static void
|
1514
|
-
|
1699
|
+
_outDeleteStmt(OUT_TYPE(DeleteStmt, DeleteStmt) out, const DeleteStmt *node)
|
1515
1700
|
{
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
WRITE_LIST_FIELD(
|
1701
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1702
|
+
WRITE_LIST_FIELD(using_clause, usingClause, usingClause);
|
1703
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1704
|
+
WRITE_LIST_FIELD(returning_list, returningList, returningList);
|
1705
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1520
1706
|
}
|
1521
1707
|
|
1522
1708
|
static void
|
1523
|
-
|
1709
|
+
_outUpdateStmt(OUT_TYPE(UpdateStmt, UpdateStmt) out, const UpdateStmt *node)
|
1524
1710
|
{
|
1525
|
-
|
1526
|
-
|
1711
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1712
|
+
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
1713
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1714
|
+
WRITE_LIST_FIELD(from_clause, fromClause, fromClause);
|
1715
|
+
WRITE_LIST_FIELD(returning_list, returningList, returningList);
|
1716
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1527
1717
|
}
|
1528
1718
|
|
1529
1719
|
static void
|
1530
|
-
|
1720
|
+
_outMergeStmt(OUT_TYPE(MergeStmt, MergeStmt) out, const MergeStmt *node)
|
1531
1721
|
{
|
1532
|
-
WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType);
|
1533
1722
|
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1534
|
-
WRITE_NODE_PTR_FIELD(
|
1535
|
-
|
1536
|
-
|
1723
|
+
WRITE_NODE_PTR_FIELD(source_relation, sourceRelation, sourceRelation);
|
1724
|
+
WRITE_NODE_PTR_FIELD(join_condition, joinCondition, joinCondition);
|
1725
|
+
WRITE_LIST_FIELD(merge_when_clauses, mergeWhenClauses, mergeWhenClauses);
|
1726
|
+
WRITE_LIST_FIELD(returning_list, returningList, returningList);
|
1727
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1537
1728
|
}
|
1538
1729
|
|
1539
1730
|
static void
|
1540
|
-
|
1731
|
+
_outSelectStmt(OUT_TYPE(SelectStmt, SelectStmt) out, const SelectStmt *node)
|
1541
1732
|
{
|
1542
|
-
|
1543
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1733
|
+
WRITE_LIST_FIELD(distinct_clause, distinctClause, distinctClause);
|
1734
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(IntoClause, into_clause, into_clause, intoClause, intoClause);
|
1735
|
+
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
1736
|
+
WRITE_LIST_FIELD(from_clause, fromClause, fromClause);
|
1737
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1738
|
+
WRITE_LIST_FIELD(group_clause, groupClause, groupClause);
|
1739
|
+
WRITE_BOOL_FIELD(group_distinct, groupDistinct, groupDistinct);
|
1740
|
+
WRITE_NODE_PTR_FIELD(having_clause, havingClause, havingClause);
|
1741
|
+
WRITE_LIST_FIELD(window_clause, windowClause, windowClause);
|
1742
|
+
WRITE_LIST_FIELD(values_lists, valuesLists, valuesLists);
|
1743
|
+
WRITE_LIST_FIELD(sort_clause, sortClause, sortClause);
|
1744
|
+
WRITE_NODE_PTR_FIELD(limit_offset, limitOffset, limitOffset);
|
1745
|
+
WRITE_NODE_PTR_FIELD(limit_count, limitCount, limitCount);
|
1746
|
+
WRITE_ENUM_FIELD(LimitOption, limit_option, limitOption, limitOption);
|
1747
|
+
WRITE_LIST_FIELD(locking_clause, lockingClause, lockingClause);
|
1748
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(WithClause, with_clause, with_clause, withClause, withClause);
|
1749
|
+
WRITE_ENUM_FIELD(SetOperation, op, op, op);
|
1750
|
+
WRITE_BOOL_FIELD(all, all, all);
|
1751
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, larg, larg, larg);
|
1752
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, rarg, rarg, rarg);
|
1547
1753
|
}
|
1548
1754
|
|
1549
1755
|
static void
|
1550
|
-
|
1756
|
+
_outSetOperationStmt(OUT_TYPE(SetOperationStmt, SetOperationStmt) out, const SetOperationStmt *node)
|
1551
1757
|
{
|
1552
|
-
WRITE_ENUM_FIELD(
|
1553
|
-
|
1554
|
-
WRITE_NODE_PTR_FIELD(
|
1555
|
-
|
1758
|
+
WRITE_ENUM_FIELD(SetOperation, op, op, op);
|
1759
|
+
WRITE_BOOL_FIELD(all, all, all);
|
1760
|
+
WRITE_NODE_PTR_FIELD(larg, larg, larg);
|
1761
|
+
WRITE_NODE_PTR_FIELD(rarg, rarg, rarg);
|
1762
|
+
WRITE_LIST_FIELD(col_types, colTypes, colTypes);
|
1763
|
+
WRITE_LIST_FIELD(col_typmods, colTypmods, colTypmods);
|
1764
|
+
WRITE_LIST_FIELD(col_collations, colCollations, colCollations);
|
1765
|
+
WRITE_LIST_FIELD(group_clauses, groupClauses, groupClauses);
|
1556
1766
|
}
|
1557
1767
|
|
1558
1768
|
static void
|
1559
|
-
|
1769
|
+
_outReturnStmt(OUT_TYPE(ReturnStmt, ReturnStmt) out, const ReturnStmt *node)
|
1560
1770
|
{
|
1561
|
-
|
1562
|
-
WRITE_LIST_FIELD(options, options, options);
|
1771
|
+
WRITE_NODE_PTR_FIELD(returnval, returnval, returnval);
|
1563
1772
|
}
|
1564
1773
|
|
1565
1774
|
static void
|
1566
|
-
|
1775
|
+
_outPLAssignStmt(OUT_TYPE(PLAssignStmt, PLAssignStmt) out, const PLAssignStmt *node)
|
1567
1776
|
{
|
1568
|
-
|
1569
|
-
WRITE_LIST_FIELD(
|
1777
|
+
WRITE_STRING_FIELD(name, name, name);
|
1778
|
+
WRITE_LIST_FIELD(indirection, indirection, indirection);
|
1779
|
+
WRITE_INT_FIELD(nnames, nnames, nnames);
|
1780
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(SelectStmt, select_stmt, val, val, val);
|
1781
|
+
WRITE_INT_FIELD(location, location, location);
|
1570
1782
|
}
|
1571
1783
|
|
1572
1784
|
static void
|
1573
|
-
|
1785
|
+
_outCreateSchemaStmt(OUT_TYPE(CreateSchemaStmt, CreateSchemaStmt) out, const CreateSchemaStmt *node)
|
1574
1786
|
{
|
1575
|
-
|
1576
|
-
|
1787
|
+
WRITE_STRING_FIELD(schemaname, schemaname, schemaname);
|
1788
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, authrole, authrole, authrole);
|
1789
|
+
WRITE_LIST_FIELD(schema_elts, schemaElts, schemaElts);
|
1790
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1577
1791
|
}
|
1578
1792
|
|
1579
1793
|
static void
|
1580
|
-
|
1794
|
+
_outAlterTableStmt(OUT_TYPE(AlterTableStmt, AlterTableStmt) out, const AlterTableStmt *node)
|
1581
1795
|
{
|
1582
|
-
|
1583
|
-
|
1796
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1797
|
+
WRITE_LIST_FIELD(cmds, cmds, cmds);
|
1798
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
1799
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1584
1800
|
}
|
1585
1801
|
|
1586
1802
|
static void
|
1587
|
-
|
1803
|
+
_outReplicaIdentityStmt(OUT_TYPE(ReplicaIdentityStmt, ReplicaIdentityStmt) out, const ReplicaIdentityStmt *node)
|
1588
1804
|
{
|
1589
|
-
|
1590
|
-
|
1805
|
+
WRITE_CHAR_FIELD(identity_type, identity_type, identity_type);
|
1806
|
+
WRITE_STRING_FIELD(name, name, name);
|
1591
1807
|
}
|
1592
1808
|
|
1593
1809
|
static void
|
1594
|
-
|
1810
|
+
_outAlterTableCmd(OUT_TYPE(AlterTableCmd, AlterTableCmd) out, const AlterTableCmd *node)
|
1595
1811
|
{
|
1596
|
-
|
1597
|
-
|
1812
|
+
WRITE_ENUM_FIELD(AlterTableType, subtype, subtype, subtype);
|
1813
|
+
WRITE_STRING_FIELD(name, name, name);
|
1814
|
+
WRITE_INT_FIELD(num, num, num);
|
1815
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner);
|
1816
|
+
WRITE_NODE_PTR_FIELD(def, def, def);
|
1817
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1818
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1819
|
+
WRITE_BOOL_FIELD(recurse, recurse, recurse);
|
1598
1820
|
}
|
1599
1821
|
|
1600
1822
|
static void
|
1601
|
-
|
1823
|
+
_outAlterCollationStmt(OUT_TYPE(AlterCollationStmt, AlterCollationStmt) out, const AlterCollationStmt *node)
|
1602
1824
|
{
|
1603
|
-
WRITE_LIST_FIELD(
|
1604
|
-
WRITE_LIST_FIELD(params, params, params);
|
1825
|
+
WRITE_LIST_FIELD(collname, collname, collname);
|
1605
1826
|
}
|
1606
1827
|
|
1607
1828
|
static void
|
1608
|
-
|
1829
|
+
_outAlterDomainStmt(OUT_TYPE(AlterDomainStmt, AlterDomainStmt) out, const AlterDomainStmt *node)
|
1609
1830
|
{
|
1831
|
+
WRITE_CHAR_FIELD(subtype, subtype, subtype);
|
1610
1832
|
WRITE_LIST_FIELD(type_name, typeName, typeName);
|
1611
|
-
WRITE_STRING_FIELD(
|
1612
|
-
|
1613
|
-
|
1614
|
-
WRITE_BOOL_FIELD(
|
1615
|
-
WRITE_BOOL_FIELD(skip_if_new_val_exists, skipIfNewValExists, skipIfNewValExists);
|
1833
|
+
WRITE_STRING_FIELD(name, name, name);
|
1834
|
+
WRITE_NODE_PTR_FIELD(def, def, def);
|
1835
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1836
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1616
1837
|
}
|
1617
1838
|
|
1618
1839
|
static void
|
1619
|
-
|
1840
|
+
_outGrantStmt(OUT_TYPE(GrantStmt, GrantStmt) out, const GrantStmt *node)
|
1620
1841
|
{
|
1621
|
-
|
1622
|
-
|
1623
|
-
|
1624
|
-
|
1842
|
+
WRITE_BOOL_FIELD(is_grant, is_grant, is_grant);
|
1843
|
+
WRITE_ENUM_FIELD(GrantTargetType, targtype, targtype, targtype);
|
1844
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
1845
|
+
WRITE_LIST_FIELD(objects, objects, objects);
|
1846
|
+
WRITE_LIST_FIELD(privileges, privileges, privileges);
|
1847
|
+
WRITE_LIST_FIELD(grantees, grantees, grantees);
|
1848
|
+
WRITE_BOOL_FIELD(grant_option, grant_option, grant_option);
|
1849
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor);
|
1850
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1851
|
+
}
|
1852
|
+
|
1625
1853
|
static void
|
1626
|
-
|
1854
|
+
_outObjectWithArgs(OUT_TYPE(ObjectWithArgs, ObjectWithArgs) out, const ObjectWithArgs *node)
|
1627
1855
|
{
|
1628
|
-
|
1629
|
-
WRITE_LIST_FIELD(
|
1630
|
-
WRITE_LIST_FIELD(
|
1631
|
-
|
1632
|
-
WRITE_BOOL_FIELD(override, override, override);
|
1633
|
-
WRITE_BOOL_FIELD(replace, replace, replace);
|
1634
|
-
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1856
|
+
WRITE_LIST_FIELD(objname, objname, objname);
|
1857
|
+
WRITE_LIST_FIELD(objargs, objargs, objargs);
|
1858
|
+
WRITE_LIST_FIELD(objfuncargs, objfuncargs, objfuncargs);
|
1859
|
+
WRITE_BOOL_FIELD(args_unspecified, args_unspecified, args_unspecified);
|
1635
1860
|
}
|
1636
1861
|
|
1637
1862
|
static void
|
1638
|
-
|
1863
|
+
_outAccessPriv(OUT_TYPE(AccessPriv, AccessPriv) out, const AccessPriv *node)
|
1639
1864
|
{
|
1640
|
-
WRITE_STRING_FIELD(
|
1641
|
-
WRITE_LIST_FIELD(
|
1642
|
-
WRITE_LIST_FIELD(options, options, options);
|
1865
|
+
WRITE_STRING_FIELD(priv_name, priv_name, priv_name);
|
1866
|
+
WRITE_LIST_FIELD(cols, cols, cols);
|
1643
1867
|
}
|
1644
1868
|
|
1645
1869
|
static void
|
1646
|
-
|
1870
|
+
_outGrantRoleStmt(OUT_TYPE(GrantRoleStmt, GrantRoleStmt) out, const GrantRoleStmt *node)
|
1647
1871
|
{
|
1648
|
-
|
1649
|
-
WRITE_LIST_FIELD(
|
1650
|
-
|
1872
|
+
WRITE_LIST_FIELD(granted_roles, granted_roles, granted_roles);
|
1873
|
+
WRITE_LIST_FIELD(grantee_roles, grantee_roles, grantee_roles);
|
1874
|
+
WRITE_BOOL_FIELD(is_grant, is_grant, is_grant);
|
1875
|
+
WRITE_LIST_FIELD(opt, opt, opt);
|
1876
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, grantor, grantor, grantor);
|
1877
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
1651
1878
|
}
|
1652
1879
|
|
1653
1880
|
static void
|
1654
|
-
|
1881
|
+
_outAlterDefaultPrivilegesStmt(OUT_TYPE(AlterDefaultPrivilegesStmt, AlterDefaultPrivilegesStmt) out, const AlterDefaultPrivilegesStmt *node)
|
1655
1882
|
{
|
1656
|
-
WRITE_STRING_FIELD(servername, servername, servername);
|
1657
|
-
WRITE_STRING_FIELD(servertype, servertype, servertype);
|
1658
|
-
WRITE_STRING_FIELD(version, version, version);
|
1659
|
-
WRITE_STRING_FIELD(fdwname, fdwname, fdwname);
|
1660
|
-
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1661
1883
|
WRITE_LIST_FIELD(options, options, options);
|
1884
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(GrantStmt, grant_stmt, action, action, action);
|
1662
1885
|
}
|
1663
1886
|
|
1664
1887
|
static void
|
1665
|
-
|
1888
|
+
_outCopyStmt(OUT_TYPE(CopyStmt, CopyStmt) out, const CopyStmt *node)
|
1666
1889
|
{
|
1667
|
-
|
1668
|
-
|
1890
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1891
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
1892
|
+
WRITE_LIST_FIELD(attlist, attlist, attlist);
|
1893
|
+
WRITE_BOOL_FIELD(is_from, is_from, is_from);
|
1894
|
+
WRITE_BOOL_FIELD(is_program, is_program, is_program);
|
1895
|
+
WRITE_STRING_FIELD(filename, filename, filename);
|
1669
1896
|
WRITE_LIST_FIELD(options, options, options);
|
1670
|
-
|
1897
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
1671
1898
|
}
|
1672
1899
|
|
1673
1900
|
static void
|
1674
|
-
|
1901
|
+
_outVariableSetStmt(OUT_TYPE(VariableSetStmt, VariableSetStmt) out, const VariableSetStmt *node)
|
1675
1902
|
{
|
1676
|
-
|
1677
|
-
WRITE_STRING_FIELD(
|
1903
|
+
WRITE_ENUM_FIELD(VariableSetKind, kind, kind, kind);
|
1904
|
+
WRITE_STRING_FIELD(name, name, name);
|
1905
|
+
WRITE_LIST_FIELD(args, args, args);
|
1906
|
+
WRITE_BOOL_FIELD(is_local, is_local, is_local);
|
1907
|
+
}
|
1908
|
+
|
1909
|
+
static void
|
1910
|
+
_outVariableShowStmt(OUT_TYPE(VariableShowStmt, VariableShowStmt) out, const VariableShowStmt *node)
|
1911
|
+
{
|
1912
|
+
WRITE_STRING_FIELD(name, name, name);
|
1913
|
+
}
|
1914
|
+
|
1915
|
+
static void
|
1916
|
+
_outCreateStmt(OUT_TYPE(CreateStmt, CreateStmt) out, const CreateStmt *node)
|
1917
|
+
{
|
1918
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
1919
|
+
WRITE_LIST_FIELD(table_elts, tableElts, tableElts);
|
1920
|
+
WRITE_LIST_FIELD(inh_relations, inhRelations, inhRelations);
|
1921
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(PartitionBoundSpec, partition_bound_spec, partbound, partbound, partbound);
|
1922
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(PartitionSpec, partition_spec, partspec, partspec, partspec);
|
1923
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, of_typename, ofTypename, ofTypename);
|
1924
|
+
WRITE_LIST_FIELD(constraints, constraints, constraints);
|
1925
|
+
WRITE_LIST_FIELD(options, options, options);
|
1926
|
+
WRITE_ENUM_FIELD(OnCommitAction, oncommit, oncommit, oncommit);
|
1927
|
+
WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename);
|
1928
|
+
WRITE_STRING_FIELD(access_method, accessMethod, accessMethod);
|
1678
1929
|
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1930
|
+
}
|
1931
|
+
|
1932
|
+
static void
|
1933
|
+
_outConstraint(OUT_TYPE(Constraint, Constraint) out, const Constraint *node)
|
1934
|
+
{
|
1935
|
+
WRITE_ENUM_FIELD(ConstrType, contype, contype, contype);
|
1936
|
+
WRITE_STRING_FIELD(conname, conname, conname);
|
1937
|
+
WRITE_BOOL_FIELD(deferrable, deferrable, deferrable);
|
1938
|
+
WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred);
|
1939
|
+
WRITE_BOOL_FIELD(skip_validation, skip_validation, skip_validation);
|
1940
|
+
WRITE_BOOL_FIELD(initially_valid, initially_valid, initially_valid);
|
1941
|
+
WRITE_BOOL_FIELD(is_no_inherit, is_no_inherit, is_no_inherit);
|
1942
|
+
WRITE_NODE_PTR_FIELD(raw_expr, raw_expr, raw_expr);
|
1943
|
+
WRITE_STRING_FIELD(cooked_expr, cooked_expr, cooked_expr);
|
1944
|
+
WRITE_CHAR_FIELD(generated_when, generated_when, generated_when);
|
1945
|
+
WRITE_INT_FIELD(inhcount, inhcount, inhcount);
|
1946
|
+
WRITE_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct);
|
1947
|
+
WRITE_LIST_FIELD(keys, keys, keys);
|
1948
|
+
WRITE_LIST_FIELD(including, including, including);
|
1949
|
+
WRITE_LIST_FIELD(exclusions, exclusions, exclusions);
|
1679
1950
|
WRITE_LIST_FIELD(options, options, options);
|
1951
|
+
WRITE_STRING_FIELD(indexname, indexname, indexname);
|
1952
|
+
WRITE_STRING_FIELD(indexspace, indexspace, indexspace);
|
1953
|
+
WRITE_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc);
|
1954
|
+
WRITE_STRING_FIELD(access_method, access_method, access_method);
|
1955
|
+
WRITE_NODE_PTR_FIELD(where_clause, where_clause, where_clause);
|
1956
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, pktable, pktable, pktable);
|
1957
|
+
WRITE_LIST_FIELD(fk_attrs, fk_attrs, fk_attrs);
|
1958
|
+
WRITE_LIST_FIELD(pk_attrs, pk_attrs, pk_attrs);
|
1959
|
+
WRITE_CHAR_FIELD(fk_matchtype, fk_matchtype, fk_matchtype);
|
1960
|
+
WRITE_CHAR_FIELD(fk_upd_action, fk_upd_action, fk_upd_action);
|
1961
|
+
WRITE_CHAR_FIELD(fk_del_action, fk_del_action, fk_del_action);
|
1962
|
+
WRITE_LIST_FIELD(fk_del_set_cols, fk_del_set_cols, fk_del_set_cols);
|
1963
|
+
WRITE_LIST_FIELD(old_conpfeqop, old_conpfeqop, old_conpfeqop);
|
1964
|
+
WRITE_UINT_FIELD(old_pktable_oid, old_pktable_oid, old_pktable_oid);
|
1965
|
+
WRITE_INT_FIELD(location, location, location);
|
1680
1966
|
}
|
1681
1967
|
|
1682
1968
|
static void
|
1683
|
-
|
1969
|
+
_outCreateTableSpaceStmt(OUT_TYPE(CreateTableSpaceStmt, CreateTableSpaceStmt) out, const CreateTableSpaceStmt *node)
|
1684
1970
|
{
|
1685
|
-
|
1686
|
-
|
1971
|
+
WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename);
|
1972
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, owner, owner, owner);
|
1973
|
+
WRITE_STRING_FIELD(location, location, location);
|
1687
1974
|
WRITE_LIST_FIELD(options, options, options);
|
1688
1975
|
}
|
1689
1976
|
|
1690
1977
|
static void
|
1691
|
-
|
1978
|
+
_outDropTableSpaceStmt(OUT_TYPE(DropTableSpaceStmt, DropTableSpaceStmt) out, const DropTableSpaceStmt *node)
|
1692
1979
|
{
|
1693
|
-
|
1694
|
-
WRITE_STRING_FIELD(servername, servername, servername);
|
1980
|
+
WRITE_STRING_FIELD(tablespacename, tablespacename, tablespacename);
|
1695
1981
|
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1696
1982
|
}
|
1697
1983
|
|
@@ -1714,92 +2000,107 @@ _outAlterTableMoveAllStmt(OUT_TYPE(AlterTableMoveAllStmt, AlterTableMoveAllStmt)
|
|
1714
2000
|
}
|
1715
2001
|
|
1716
2002
|
static void
|
1717
|
-
|
2003
|
+
_outCreateExtensionStmt(OUT_TYPE(CreateExtensionStmt, CreateExtensionStmt) out, const CreateExtensionStmt *node)
|
1718
2004
|
{
|
1719
|
-
|
1720
|
-
|
1721
|
-
|
1722
|
-
WRITE_STRING_FIELD(label, label, label);
|
2005
|
+
WRITE_STRING_FIELD(extname, extname, extname);
|
2006
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2007
|
+
WRITE_LIST_FIELD(options, options, options);
|
1723
2008
|
}
|
1724
2009
|
|
1725
2010
|
static void
|
1726
|
-
|
2011
|
+
_outAlterExtensionStmt(OUT_TYPE(AlterExtensionStmt, AlterExtensionStmt) out, const AlterExtensionStmt *node)
|
1727
2012
|
{
|
1728
|
-
|
1729
|
-
WRITE_STRING_FIELD(servername, servername, servername);
|
2013
|
+
WRITE_STRING_FIELD(extname, extname, extname);
|
1730
2014
|
WRITE_LIST_FIELD(options, options, options);
|
1731
2015
|
}
|
1732
2016
|
|
1733
2017
|
static void
|
1734
|
-
|
2018
|
+
_outAlterExtensionContentsStmt(OUT_TYPE(AlterExtensionContentsStmt, AlterExtensionContentsStmt) out, const AlterExtensionContentsStmt *node)
|
1735
2019
|
{
|
1736
|
-
WRITE_STRING_FIELD(
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
2020
|
+
WRITE_STRING_FIELD(extname, extname, extname);
|
2021
|
+
WRITE_INT_FIELD(action, action, action);
|
2022
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
2023
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2024
|
+
}
|
2025
|
+
|
2026
|
+
static void
|
2027
|
+
_outCreateFdwStmt(OUT_TYPE(CreateFdwStmt, CreateFdwStmt) out, const CreateFdwStmt *node)
|
2028
|
+
{
|
2029
|
+
WRITE_STRING_FIELD(fdwname, fdwname, fdwname);
|
2030
|
+
WRITE_LIST_FIELD(func_options, func_options, func_options);
|
1741
2031
|
WRITE_LIST_FIELD(options, options, options);
|
1742
2032
|
}
|
1743
2033
|
|
1744
2034
|
static void
|
1745
|
-
|
2035
|
+
_outAlterFdwStmt(OUT_TYPE(AlterFdwStmt, AlterFdwStmt) out, const AlterFdwStmt *node)
|
1746
2036
|
{
|
1747
|
-
WRITE_STRING_FIELD(
|
1748
|
-
|
2037
|
+
WRITE_STRING_FIELD(fdwname, fdwname, fdwname);
|
2038
|
+
WRITE_LIST_FIELD(func_options, func_options, func_options);
|
1749
2039
|
WRITE_LIST_FIELD(options, options, options);
|
1750
2040
|
}
|
1751
2041
|
|
1752
2042
|
static void
|
1753
|
-
|
2043
|
+
_outCreateForeignServerStmt(OUT_TYPE(CreateForeignServerStmt, CreateForeignServerStmt) out, const CreateForeignServerStmt *node)
|
1754
2044
|
{
|
1755
|
-
WRITE_STRING_FIELD(
|
2045
|
+
WRITE_STRING_FIELD(servername, servername, servername);
|
2046
|
+
WRITE_STRING_FIELD(servertype, servertype, servertype);
|
2047
|
+
WRITE_STRING_FIELD(version, version, version);
|
2048
|
+
WRITE_STRING_FIELD(fdwname, fdwname, fdwname);
|
2049
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1756
2050
|
WRITE_LIST_FIELD(options, options, options);
|
1757
2051
|
}
|
1758
2052
|
|
1759
2053
|
static void
|
1760
|
-
|
2054
|
+
_outAlterForeignServerStmt(OUT_TYPE(AlterForeignServerStmt, AlterForeignServerStmt) out, const AlterForeignServerStmt *node)
|
1761
2055
|
{
|
1762
|
-
WRITE_STRING_FIELD(
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
2056
|
+
WRITE_STRING_FIELD(servername, servername, servername);
|
2057
|
+
WRITE_STRING_FIELD(version, version, version);
|
2058
|
+
WRITE_LIST_FIELD(options, options, options);
|
2059
|
+
WRITE_BOOL_FIELD(has_version, has_version, has_version);
|
1766
2060
|
}
|
1767
2061
|
|
1768
2062
|
static void
|
1769
|
-
|
2063
|
+
_outCreateForeignTableStmt(OUT_TYPE(CreateForeignTableStmt, CreateForeignTableStmt) out, const CreateForeignTableStmt *node)
|
1770
2064
|
{
|
1771
|
-
|
1772
|
-
WRITE_STRING_FIELD(
|
1773
|
-
WRITE_LIST_FIELD(
|
1774
|
-
WRITE_LIST_FIELD(funcname, funcname, funcname);
|
2065
|
+
WRITE_SPECIFIC_NODE_FIELD(CreateStmt, create_stmt, base_stmt, base, base);
|
2066
|
+
WRITE_STRING_FIELD(servername, servername, servername);
|
2067
|
+
WRITE_LIST_FIELD(options, options, options);
|
1775
2068
|
}
|
1776
2069
|
|
1777
2070
|
static void
|
1778
|
-
|
2071
|
+
_outCreateUserMappingStmt(OUT_TYPE(CreateUserMappingStmt, CreateUserMappingStmt) out, const CreateUserMappingStmt *node)
|
1779
2072
|
{
|
1780
|
-
|
1781
|
-
|
2073
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user);
|
2074
|
+
WRITE_STRING_FIELD(servername, servername, servername);
|
2075
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2076
|
+
WRITE_LIST_FIELD(options, options, options);
|
1782
2077
|
}
|
1783
2078
|
|
1784
2079
|
static void
|
1785
|
-
|
2080
|
+
_outAlterUserMappingStmt(OUT_TYPE(AlterUserMappingStmt, AlterUserMappingStmt) out, const AlterUserMappingStmt *node)
|
1786
2081
|
{
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
2082
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user);
|
2083
|
+
WRITE_STRING_FIELD(servername, servername, servername);
|
2084
|
+
WRITE_LIST_FIELD(options, options, options);
|
1790
2085
|
}
|
1791
2086
|
|
1792
2087
|
static void
|
1793
|
-
|
2088
|
+
_outDropUserMappingStmt(OUT_TYPE(DropUserMappingStmt, DropUserMappingStmt) out, const DropUserMappingStmt *node)
|
1794
2089
|
{
|
1795
|
-
|
1796
|
-
WRITE_STRING_FIELD(
|
2090
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, user, user, user);
|
2091
|
+
WRITE_STRING_FIELD(servername, servername, servername);
|
2092
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1797
2093
|
}
|
1798
2094
|
|
1799
2095
|
static void
|
1800
|
-
|
2096
|
+
_outImportForeignSchemaStmt(OUT_TYPE(ImportForeignSchemaStmt, ImportForeignSchemaStmt) out, const ImportForeignSchemaStmt *node)
|
1801
2097
|
{
|
1802
|
-
|
2098
|
+
WRITE_STRING_FIELD(server_name, server_name, server_name);
|
2099
|
+
WRITE_STRING_FIELD(remote_schema, remote_schema, remote_schema);
|
2100
|
+
WRITE_STRING_FIELD(local_schema, local_schema, local_schema);
|
2101
|
+
WRITE_ENUM_FIELD(ImportForeignSchemaType, list_type, list_type, list_type);
|
2102
|
+
WRITE_LIST_FIELD(table_list, table_list, table_list);
|
2103
|
+
WRITE_LIST_FIELD(options, options, options);
|
1803
2104
|
}
|
1804
2105
|
|
1805
2106
|
static void
|
@@ -1824,16 +2125,6 @@ _outAlterPolicyStmt(OUT_TYPE(AlterPolicyStmt, AlterPolicyStmt) out, const AlterP
|
|
1824
2125
|
WRITE_NODE_PTR_FIELD(with_check, with_check, with_check);
|
1825
2126
|
}
|
1826
2127
|
|
1827
|
-
static void
|
1828
|
-
_outCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) out, const CreateTransformStmt *node)
|
1829
|
-
{
|
1830
|
-
WRITE_BOOL_FIELD(replace, replace, replace);
|
1831
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, type_name, type_name);
|
1832
|
-
WRITE_STRING_FIELD(lang, lang, lang);
|
1833
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, fromsql, fromsql, fromsql);
|
1834
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, tosql, tosql, tosql);
|
1835
|
-
}
|
1836
|
-
|
1837
2128
|
static void
|
1838
2129
|
_outCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) out, const CreateAmStmt *node)
|
1839
2130
|
{
|
@@ -1843,691 +2134,697 @@ _outCreateAmStmt(OUT_TYPE(CreateAmStmt, CreateAmStmt) out, const CreateAmStmt *n
|
|
1843
2134
|
}
|
1844
2135
|
|
1845
2136
|
static void
|
1846
|
-
|
1847
|
-
{
|
1848
|
-
WRITE_STRING_FIELD(pubname, pubname, pubname);
|
1849
|
-
WRITE_LIST_FIELD(options, options, options);
|
1850
|
-
WRITE_LIST_FIELD(pubobjects, pubobjects, pubobjects);
|
1851
|
-
WRITE_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables);
|
1852
|
-
}
|
1853
|
-
|
1854
|
-
static void
|
1855
|
-
_outAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) out, const AlterPublicationStmt *node)
|
2137
|
+
_outCreateTrigStmt(OUT_TYPE(CreateTrigStmt, CreateTrigStmt) out, const CreateTrigStmt *node)
|
1856
2138
|
{
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
|
2139
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2140
|
+
WRITE_BOOL_FIELD(isconstraint, isconstraint, isconstraint);
|
2141
|
+
WRITE_STRING_FIELD(trigname, trigname, trigname);
|
2142
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2143
|
+
WRITE_LIST_FIELD(funcname, funcname, funcname);
|
2144
|
+
WRITE_LIST_FIELD(args, args, args);
|
2145
|
+
WRITE_BOOL_FIELD(row, row, row);
|
2146
|
+
WRITE_INT_FIELD(timing, timing, timing);
|
2147
|
+
WRITE_INT_FIELD(events, events, events);
|
2148
|
+
WRITE_LIST_FIELD(columns, columns, columns);
|
2149
|
+
WRITE_NODE_PTR_FIELD(when_clause, whenClause, whenClause);
|
2150
|
+
WRITE_LIST_FIELD(transition_rels, transitionRels, transitionRels);
|
2151
|
+
WRITE_BOOL_FIELD(deferrable, deferrable, deferrable);
|
2152
|
+
WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred);
|
2153
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, constrrel, constrrel, constrrel);
|
1862
2154
|
}
|
1863
2155
|
|
1864
2156
|
static void
|
1865
|
-
|
2157
|
+
_outCreateEventTrigStmt(OUT_TYPE(CreateEventTrigStmt, CreateEventTrigStmt) out, const CreateEventTrigStmt *node)
|
1866
2158
|
{
|
1867
|
-
WRITE_STRING_FIELD(
|
1868
|
-
WRITE_STRING_FIELD(
|
1869
|
-
WRITE_LIST_FIELD(
|
1870
|
-
WRITE_LIST_FIELD(
|
2159
|
+
WRITE_STRING_FIELD(trigname, trigname, trigname);
|
2160
|
+
WRITE_STRING_FIELD(eventname, eventname, eventname);
|
2161
|
+
WRITE_LIST_FIELD(whenclause, whenclause, whenclause);
|
2162
|
+
WRITE_LIST_FIELD(funcname, funcname, funcname);
|
1871
2163
|
}
|
1872
2164
|
|
1873
2165
|
static void
|
1874
|
-
|
2166
|
+
_outAlterEventTrigStmt(OUT_TYPE(AlterEventTrigStmt, AlterEventTrigStmt) out, const AlterEventTrigStmt *node)
|
1875
2167
|
{
|
1876
|
-
|
1877
|
-
|
1878
|
-
WRITE_STRING_FIELD(conninfo, conninfo, conninfo);
|
1879
|
-
WRITE_LIST_FIELD(publication, publication, publication);
|
1880
|
-
WRITE_LIST_FIELD(options, options, options);
|
2168
|
+
WRITE_STRING_FIELD(trigname, trigname, trigname);
|
2169
|
+
WRITE_CHAR_FIELD(tgenabled, tgenabled, tgenabled);
|
1881
2170
|
}
|
1882
2171
|
|
1883
2172
|
static void
|
1884
|
-
|
2173
|
+
_outCreatePLangStmt(OUT_TYPE(CreatePLangStmt, CreatePLangStmt) out, const CreatePLangStmt *node)
|
1885
2174
|
{
|
1886
|
-
|
1887
|
-
|
1888
|
-
|
2175
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2176
|
+
WRITE_STRING_FIELD(plname, plname, plname);
|
2177
|
+
WRITE_LIST_FIELD(plhandler, plhandler, plhandler);
|
2178
|
+
WRITE_LIST_FIELD(plinline, plinline, plinline);
|
2179
|
+
WRITE_LIST_FIELD(plvalidator, plvalidator, plvalidator);
|
2180
|
+
WRITE_BOOL_FIELD(pltrusted, pltrusted, pltrusted);
|
1889
2181
|
}
|
1890
2182
|
|
1891
2183
|
static void
|
1892
|
-
|
2184
|
+
_outCreateRoleStmt(OUT_TYPE(CreateRoleStmt, CreateRoleStmt) out, const CreateRoleStmt *node)
|
1893
2185
|
{
|
1894
|
-
|
1895
|
-
|
1896
|
-
WRITE_LIST_FIELD(
|
1897
|
-
WRITE_LIST_FIELD(relations, relations, relations);
|
1898
|
-
WRITE_STRING_FIELD(stxcomment, stxcomment, stxcomment);
|
1899
|
-
WRITE_BOOL_FIELD(transformed, transformed, transformed);
|
1900
|
-
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2186
|
+
WRITE_ENUM_FIELD(RoleStmtType, stmt_type, stmt_type, stmt_type);
|
2187
|
+
WRITE_STRING_FIELD(role, role, role);
|
2188
|
+
WRITE_LIST_FIELD(options, options, options);
|
1901
2189
|
}
|
1902
2190
|
|
1903
2191
|
static void
|
1904
|
-
|
2192
|
+
_outAlterRoleStmt(OUT_TYPE(AlterRoleStmt, AlterRoleStmt) out, const AlterRoleStmt *node)
|
1905
2193
|
{
|
1906
|
-
|
2194
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, role, role, role);
|
2195
|
+
WRITE_LIST_FIELD(options, options, options);
|
2196
|
+
WRITE_INT_FIELD(action, action, action);
|
1907
2197
|
}
|
1908
2198
|
|
1909
2199
|
static void
|
1910
|
-
|
2200
|
+
_outAlterRoleSetStmt(OUT_TYPE(AlterRoleSetStmt, AlterRoleSetStmt) out, const AlterRoleSetStmt *node)
|
1911
2201
|
{
|
1912
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(
|
1913
|
-
|
1914
|
-
|
2202
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, role, role, role);
|
2203
|
+
WRITE_STRING_FIELD(database, database, database);
|
2204
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt);
|
1915
2205
|
}
|
1916
2206
|
|
1917
2207
|
static void
|
1918
|
-
|
2208
|
+
_outDropRoleStmt(OUT_TYPE(DropRoleStmt, DropRoleStmt) out, const DropRoleStmt *node)
|
1919
2209
|
{
|
1920
|
-
WRITE_LIST_FIELD(
|
1921
|
-
WRITE_INT_FIELD(stxstattarget, stxstattarget, stxstattarget);
|
2210
|
+
WRITE_LIST_FIELD(roles, roles, roles);
|
1922
2211
|
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1923
2212
|
}
|
1924
2213
|
|
1925
2214
|
static void
|
1926
|
-
|
1927
|
-
{
|
1928
|
-
WRITE_ENUM_FIELD(A_Expr_Kind, kind, kind, kind);
|
1929
|
-
WRITE_LIST_FIELD(name, name, name);
|
1930
|
-
WRITE_NODE_PTR_FIELD(lexpr, lexpr, lexpr);
|
1931
|
-
WRITE_NODE_PTR_FIELD(rexpr, rexpr, rexpr);
|
1932
|
-
WRITE_INT_FIELD(location, location, location);
|
1933
|
-
}
|
1934
|
-
|
1935
|
-
static void
|
1936
|
-
_outColumnRef(OUT_TYPE(ColumnRef, ColumnRef) out, const ColumnRef *node)
|
2215
|
+
_outCreateSeqStmt(OUT_TYPE(CreateSeqStmt, CreateSeqStmt) out, const CreateSeqStmt *node)
|
1937
2216
|
{
|
1938
|
-
|
1939
|
-
|
2217
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, sequence, sequence, sequence);
|
2218
|
+
WRITE_LIST_FIELD(options, options, options);
|
2219
|
+
WRITE_UINT_FIELD(owner_id, ownerId, ownerId);
|
2220
|
+
WRITE_BOOL_FIELD(for_identity, for_identity, for_identity);
|
2221
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
1940
2222
|
}
|
1941
2223
|
|
1942
2224
|
static void
|
1943
|
-
|
2225
|
+
_outAlterSeqStmt(OUT_TYPE(AlterSeqStmt, AlterSeqStmt) out, const AlterSeqStmt *node)
|
1944
2226
|
{
|
1945
|
-
|
1946
|
-
|
2227
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, sequence, sequence, sequence);
|
2228
|
+
WRITE_LIST_FIELD(options, options, options);
|
2229
|
+
WRITE_BOOL_FIELD(for_identity, for_identity, for_identity);
|
2230
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
1947
2231
|
}
|
1948
2232
|
|
1949
2233
|
static void
|
1950
|
-
|
2234
|
+
_outDefineStmt(OUT_TYPE(DefineStmt, DefineStmt) out, const DefineStmt *node)
|
1951
2235
|
{
|
1952
|
-
|
2236
|
+
WRITE_ENUM_FIELD(ObjectType, kind, kind, kind);
|
2237
|
+
WRITE_BOOL_FIELD(oldstyle, oldstyle, oldstyle);
|
2238
|
+
WRITE_LIST_FIELD(defnames, defnames, defnames);
|
1953
2239
|
WRITE_LIST_FIELD(args, args, args);
|
1954
|
-
WRITE_LIST_FIELD(
|
1955
|
-
|
1956
|
-
|
1957
|
-
WRITE_BOOL_FIELD(agg_within_group, agg_within_group, agg_within_group);
|
1958
|
-
WRITE_BOOL_FIELD(agg_star, agg_star, agg_star);
|
1959
|
-
WRITE_BOOL_FIELD(agg_distinct, agg_distinct, agg_distinct);
|
1960
|
-
WRITE_BOOL_FIELD(func_variadic, func_variadic, func_variadic);
|
1961
|
-
WRITE_ENUM_FIELD(CoercionForm, funcformat, funcformat, funcformat);
|
1962
|
-
WRITE_INT_FIELD(location, location, location);
|
1963
|
-
}
|
1964
|
-
|
1965
|
-
static void
|
1966
|
-
_outAStar(OUT_TYPE(A_Star, AStar) out, const A_Star *node)
|
1967
|
-
{
|
2240
|
+
WRITE_LIST_FIELD(definition, definition, definition);
|
2241
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2242
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
1968
2243
|
}
|
1969
2244
|
|
1970
2245
|
static void
|
1971
|
-
|
2246
|
+
_outCreateDomainStmt(OUT_TYPE(CreateDomainStmt, CreateDomainStmt) out, const CreateDomainStmt *node)
|
1972
2247
|
{
|
1973
|
-
|
1974
|
-
|
1975
|
-
|
2248
|
+
WRITE_LIST_FIELD(domainname, domainname, domainname);
|
2249
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
2250
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause);
|
2251
|
+
WRITE_LIST_FIELD(constraints, constraints, constraints);
|
1976
2252
|
}
|
1977
2253
|
|
1978
2254
|
static void
|
1979
|
-
|
2255
|
+
_outCreateOpClassStmt(OUT_TYPE(CreateOpClassStmt, CreateOpClassStmt) out, const CreateOpClassStmt *node)
|
1980
2256
|
{
|
1981
|
-
|
1982
|
-
WRITE_LIST_FIELD(
|
2257
|
+
WRITE_LIST_FIELD(opclassname, opclassname, opclassname);
|
2258
|
+
WRITE_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname);
|
2259
|
+
WRITE_STRING_FIELD(amname, amname, amname);
|
2260
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, datatype, datatype, datatype);
|
2261
|
+
WRITE_LIST_FIELD(items, items, items);
|
2262
|
+
WRITE_BOOL_FIELD(is_default, isDefault, isDefault);
|
1983
2263
|
}
|
1984
2264
|
|
1985
2265
|
static void
|
1986
|
-
|
2266
|
+
_outCreateOpClassItem(OUT_TYPE(CreateOpClassItem, CreateOpClassItem) out, const CreateOpClassItem *node)
|
1987
2267
|
{
|
1988
|
-
|
1989
|
-
|
2268
|
+
WRITE_INT_FIELD(itemtype, itemtype, itemtype);
|
2269
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, name, name, name);
|
2270
|
+
WRITE_INT_FIELD(number, number, number);
|
2271
|
+
WRITE_LIST_FIELD(order_family, order_family, order_family);
|
2272
|
+
WRITE_LIST_FIELD(class_args, class_args, class_args);
|
2273
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, storedtype, storedtype, storedtype);
|
1990
2274
|
}
|
1991
2275
|
|
1992
2276
|
static void
|
1993
|
-
|
2277
|
+
_outCreateOpFamilyStmt(OUT_TYPE(CreateOpFamilyStmt, CreateOpFamilyStmt) out, const CreateOpFamilyStmt *node)
|
1994
2278
|
{
|
1995
|
-
|
1996
|
-
|
1997
|
-
WRITE_NODE_PTR_FIELD(val, val, val);
|
1998
|
-
WRITE_INT_FIELD(location, location, location);
|
2279
|
+
WRITE_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname);
|
2280
|
+
WRITE_STRING_FIELD(amname, amname, amname);
|
1999
2281
|
}
|
2000
2282
|
|
2001
2283
|
static void
|
2002
|
-
|
2284
|
+
_outAlterOpFamilyStmt(OUT_TYPE(AlterOpFamilyStmt, AlterOpFamilyStmt) out, const AlterOpFamilyStmt *node)
|
2003
2285
|
{
|
2004
|
-
|
2005
|
-
|
2006
|
-
|
2286
|
+
WRITE_LIST_FIELD(opfamilyname, opfamilyname, opfamilyname);
|
2287
|
+
WRITE_STRING_FIELD(amname, amname, amname);
|
2288
|
+
WRITE_BOOL_FIELD(is_drop, isDrop, isDrop);
|
2289
|
+
WRITE_LIST_FIELD(items, items, items);
|
2007
2290
|
}
|
2008
2291
|
|
2009
2292
|
static void
|
2010
|
-
|
2293
|
+
_outDropStmt(OUT_TYPE(DropStmt, DropStmt) out, const DropStmt *node)
|
2011
2294
|
{
|
2012
|
-
|
2013
|
-
|
2014
|
-
|
2295
|
+
WRITE_LIST_FIELD(objects, objects, objects);
|
2296
|
+
WRITE_ENUM_FIELD(ObjectType, remove_type, removeType, removeType);
|
2297
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
2298
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2299
|
+
WRITE_BOOL_FIELD(concurrent, concurrent, concurrent);
|
2015
2300
|
}
|
2016
2301
|
|
2017
2302
|
static void
|
2018
|
-
|
2303
|
+
_outTruncateStmt(OUT_TYPE(TruncateStmt, TruncateStmt) out, const TruncateStmt *node)
|
2019
2304
|
{
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2305
|
+
WRITE_LIST_FIELD(relations, relations, relations);
|
2306
|
+
WRITE_BOOL_FIELD(restart_seqs, restart_seqs, restart_seqs);
|
2307
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
2023
2308
|
}
|
2024
2309
|
|
2025
2310
|
static void
|
2026
|
-
|
2311
|
+
_outCommentStmt(OUT_TYPE(CommentStmt, CommentStmt) out, const CommentStmt *node)
|
2027
2312
|
{
|
2028
|
-
|
2029
|
-
|
2030
|
-
|
2031
|
-
WRITE_LIST_FIELD(use_op, useOp, useOp);
|
2032
|
-
WRITE_INT_FIELD(location, location, location);
|
2313
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
2314
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2315
|
+
WRITE_STRING_FIELD(comment, comment, comment);
|
2033
2316
|
}
|
2034
2317
|
|
2035
2318
|
static void
|
2036
|
-
|
2319
|
+
_outSecLabelStmt(OUT_TYPE(SecLabelStmt, SecLabelStmt) out, const SecLabelStmt *node)
|
2037
2320
|
{
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2042
|
-
WRITE_INT_FIELD(frame_options, frameOptions, frameOptions);
|
2043
|
-
WRITE_NODE_PTR_FIELD(start_offset, startOffset, startOffset);
|
2044
|
-
WRITE_NODE_PTR_FIELD(end_offset, endOffset, endOffset);
|
2045
|
-
WRITE_INT_FIELD(location, location, location);
|
2321
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
2322
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2323
|
+
WRITE_STRING_FIELD(provider, provider, provider);
|
2324
|
+
WRITE_STRING_FIELD(label, label, label);
|
2046
2325
|
}
|
2047
2326
|
|
2048
2327
|
static void
|
2049
|
-
|
2328
|
+
_outDeclareCursorStmt(OUT_TYPE(DeclareCursorStmt, DeclareCursorStmt) out, const DeclareCursorStmt *node)
|
2050
2329
|
{
|
2051
|
-
|
2052
|
-
|
2053
|
-
|
2330
|
+
WRITE_STRING_FIELD(portalname, portalname, portalname);
|
2331
|
+
WRITE_INT_FIELD(options, options, options);
|
2332
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
2054
2333
|
}
|
2055
2334
|
|
2056
2335
|
static void
|
2057
|
-
|
2336
|
+
_outClosePortalStmt(OUT_TYPE(ClosePortalStmt, ClosePortalStmt) out, const ClosePortalStmt *node)
|
2058
2337
|
{
|
2059
|
-
|
2060
|
-
WRITE_BOOL_FIELD(ordinality, ordinality, ordinality);
|
2061
|
-
WRITE_BOOL_FIELD(is_rowsfrom, is_rowsfrom, is_rowsfrom);
|
2062
|
-
WRITE_LIST_FIELD(functions, functions, functions);
|
2063
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
2064
|
-
WRITE_LIST_FIELD(coldeflist, coldeflist, coldeflist);
|
2338
|
+
WRITE_STRING_FIELD(portalname, portalname, portalname);
|
2065
2339
|
}
|
2066
2340
|
|
2067
2341
|
static void
|
2068
|
-
|
2342
|
+
_outFetchStmt(OUT_TYPE(FetchStmt, FetchStmt) out, const FetchStmt *node)
|
2069
2343
|
{
|
2070
|
-
|
2071
|
-
|
2072
|
-
|
2073
|
-
|
2074
|
-
WRITE_INT_FIELD(location, location, location);
|
2344
|
+
WRITE_ENUM_FIELD(FetchDirection, direction, direction, direction);
|
2345
|
+
WRITE_LONG_FIELD(how_many, howMany, howMany);
|
2346
|
+
WRITE_STRING_FIELD(portalname, portalname, portalname);
|
2347
|
+
WRITE_BOOL_FIELD(ismove, ismove, ismove);
|
2075
2348
|
}
|
2076
2349
|
|
2077
2350
|
static void
|
2078
|
-
|
2351
|
+
_outIndexStmt(OUT_TYPE(IndexStmt, IndexStmt) out, const IndexStmt *node)
|
2079
2352
|
{
|
2080
|
-
|
2081
|
-
|
2082
|
-
|
2083
|
-
|
2084
|
-
WRITE_LIST_FIELD(
|
2085
|
-
|
2086
|
-
|
2087
|
-
|
2353
|
+
WRITE_STRING_FIELD(idxname, idxname, idxname);
|
2354
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2355
|
+
WRITE_STRING_FIELD(access_method, accessMethod, accessMethod);
|
2356
|
+
WRITE_STRING_FIELD(table_space, tableSpace, tableSpace);
|
2357
|
+
WRITE_LIST_FIELD(index_params, indexParams, indexParams);
|
2358
|
+
WRITE_LIST_FIELD(index_including_params, indexIncludingParams, indexIncludingParams);
|
2359
|
+
WRITE_LIST_FIELD(options, options, options);
|
2360
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
2361
|
+
WRITE_LIST_FIELD(exclude_op_names, excludeOpNames, excludeOpNames);
|
2362
|
+
WRITE_STRING_FIELD(idxcomment, idxcomment, idxcomment);
|
2363
|
+
WRITE_UINT_FIELD(index_oid, indexOid, indexOid);
|
2364
|
+
WRITE_UINT_FIELD(old_number, oldNumber, oldNumber);
|
2365
|
+
WRITE_UINT_FIELD(old_create_subid, oldCreateSubid, oldCreateSubid);
|
2366
|
+
WRITE_UINT_FIELD(old_first_relfilelocator_subid, oldFirstRelfilelocatorSubid, oldFirstRelfilelocatorSubid);
|
2367
|
+
WRITE_BOOL_FIELD(unique, unique, unique);
|
2368
|
+
WRITE_BOOL_FIELD(nulls_not_distinct, nulls_not_distinct, nulls_not_distinct);
|
2369
|
+
WRITE_BOOL_FIELD(primary, primary, primary);
|
2370
|
+
WRITE_BOOL_FIELD(isconstraint, isconstraint, isconstraint);
|
2371
|
+
WRITE_BOOL_FIELD(deferrable, deferrable, deferrable);
|
2372
|
+
WRITE_BOOL_FIELD(initdeferred, initdeferred, initdeferred);
|
2373
|
+
WRITE_BOOL_FIELD(transformed, transformed, transformed);
|
2374
|
+
WRITE_BOOL_FIELD(concurrent, concurrent, concurrent);
|
2375
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2376
|
+
WRITE_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc);
|
2377
|
+
}
|
2088
2378
|
|
2089
2379
|
static void
|
2090
|
-
|
2380
|
+
_outCreateStatsStmt(OUT_TYPE(CreateStatsStmt, CreateStatsStmt) out, const CreateStatsStmt *node)
|
2091
2381
|
{
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2382
|
+
WRITE_LIST_FIELD(defnames, defnames, defnames);
|
2383
|
+
WRITE_LIST_FIELD(stat_types, stat_types, stat_types);
|
2384
|
+
WRITE_LIST_FIELD(exprs, exprs, exprs);
|
2385
|
+
WRITE_LIST_FIELD(relations, relations, relations);
|
2386
|
+
WRITE_STRING_FIELD(stxcomment, stxcomment, stxcomment);
|
2387
|
+
WRITE_BOOL_FIELD(transformed, transformed, transformed);
|
2388
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2099
2389
|
}
|
2100
2390
|
|
2101
2391
|
static void
|
2102
|
-
|
2392
|
+
_outStatsElem(OUT_TYPE(StatsElem, StatsElem) out, const StatsElem *node)
|
2103
2393
|
{
|
2104
|
-
|
2105
|
-
|
2106
|
-
WRITE_BOOL_FIELD(setof, setof, setof);
|
2107
|
-
WRITE_BOOL_FIELD(pct_type, pct_type, pct_type);
|
2108
|
-
WRITE_LIST_FIELD(typmods, typmods, typmods);
|
2109
|
-
WRITE_INT_FIELD(typemod, typemod, typemod);
|
2110
|
-
WRITE_LIST_FIELD(array_bounds, arrayBounds, arrayBounds);
|
2111
|
-
WRITE_INT_FIELD(location, location, location);
|
2394
|
+
WRITE_STRING_FIELD(name, name, name);
|
2395
|
+
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
2112
2396
|
}
|
2113
2397
|
|
2114
2398
|
static void
|
2115
|
-
|
2399
|
+
_outAlterStatsStmt(OUT_TYPE(AlterStatsStmt, AlterStatsStmt) out, const AlterStatsStmt *node)
|
2116
2400
|
{
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
WRITE_INT_FIELD(inhcount, inhcount, inhcount);
|
2121
|
-
WRITE_BOOL_FIELD(is_local, is_local, is_local);
|
2122
|
-
WRITE_BOOL_FIELD(is_not_null, is_not_null, is_not_null);
|
2123
|
-
WRITE_BOOL_FIELD(is_from_type, is_from_type, is_from_type);
|
2124
|
-
WRITE_CHAR_FIELD(storage, storage, storage);
|
2125
|
-
WRITE_NODE_PTR_FIELD(raw_default, raw_default, raw_default);
|
2126
|
-
WRITE_NODE_PTR_FIELD(cooked_default, cooked_default, cooked_default);
|
2127
|
-
WRITE_CHAR_FIELD(identity, identity, identity);
|
2128
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, identity_sequence, identitySequence, identitySequence);
|
2129
|
-
WRITE_CHAR_FIELD(generated, generated, generated);
|
2130
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(CollateClause, collate_clause, coll_clause, collClause, collClause);
|
2131
|
-
WRITE_UINT_FIELD(coll_oid, collOid, collOid);
|
2132
|
-
WRITE_LIST_FIELD(constraints, constraints, constraints);
|
2133
|
-
WRITE_LIST_FIELD(fdwoptions, fdwoptions, fdwoptions);
|
2134
|
-
WRITE_INT_FIELD(location, location, location);
|
2401
|
+
WRITE_LIST_FIELD(defnames, defnames, defnames);
|
2402
|
+
WRITE_NODE_PTR_FIELD(stxstattarget, stxstattarget, stxstattarget);
|
2403
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2135
2404
|
}
|
2136
2405
|
|
2137
2406
|
static void
|
2138
|
-
|
2407
|
+
_outCreateFunctionStmt(OUT_TYPE(CreateFunctionStmt, CreateFunctionStmt) out, const CreateFunctionStmt *node)
|
2139
2408
|
{
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
WRITE_LIST_FIELD(
|
2144
|
-
|
2145
|
-
WRITE_LIST_FIELD(
|
2146
|
-
|
2147
|
-
WRITE_ENUM_FIELD(SortByNulls, nulls_ordering, nulls_ordering, nulls_ordering);
|
2409
|
+
WRITE_BOOL_FIELD(is_procedure, is_procedure, is_procedure);
|
2410
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2411
|
+
WRITE_LIST_FIELD(funcname, funcname, funcname);
|
2412
|
+
WRITE_LIST_FIELD(parameters, parameters, parameters);
|
2413
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, return_type, returnType, returnType);
|
2414
|
+
WRITE_LIST_FIELD(options, options, options);
|
2415
|
+
WRITE_NODE_PTR_FIELD(sql_body, sql_body, sql_body);
|
2148
2416
|
}
|
2149
2417
|
|
2150
2418
|
static void
|
2151
|
-
|
2419
|
+
_outFunctionParameter(OUT_TYPE(FunctionParameter, FunctionParameter) out, const FunctionParameter *node)
|
2152
2420
|
{
|
2153
2421
|
WRITE_STRING_FIELD(name, name, name);
|
2154
|
-
|
2422
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, arg_type, argType, argType);
|
2423
|
+
WRITE_ENUM_FIELD(FunctionParameterMode, mode, mode, mode);
|
2424
|
+
WRITE_NODE_PTR_FIELD(defexpr, defexpr, defexpr);
|
2155
2425
|
}
|
2156
2426
|
|
2157
2427
|
static void
|
2158
|
-
|
2428
|
+
_outAlterFunctionStmt(OUT_TYPE(AlterFunctionStmt, AlterFunctionStmt) out, const AlterFunctionStmt *node)
|
2159
2429
|
{
|
2160
|
-
WRITE_ENUM_FIELD(
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2430
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
2431
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, func, func, func);
|
2432
|
+
WRITE_LIST_FIELD(actions, actions, actions);
|
2433
|
+
}
|
2434
|
+
|
2435
|
+
static void
|
2436
|
+
_outDoStmt(OUT_TYPE(DoStmt, DoStmt) out, const DoStmt *node)
|
2437
|
+
{
|
2438
|
+
WRITE_LIST_FIELD(args, args, args);
|
2439
|
+
}
|
2440
|
+
|
2441
|
+
static void
|
2442
|
+
_outInlineCodeBlock(OUT_TYPE(InlineCodeBlock, InlineCodeBlock) out, const InlineCodeBlock *node)
|
2443
|
+
{
|
2444
|
+
WRITE_STRING_FIELD(source_text, source_text, source_text);
|
2445
|
+
WRITE_UINT_FIELD(lang_oid, langOid, langOid);
|
2446
|
+
WRITE_BOOL_FIELD(lang_is_trusted, langIsTrusted, langIsTrusted);
|
2447
|
+
WRITE_BOOL_FIELD(atomic, atomic, atomic);
|
2448
|
+
}
|
2449
|
+
|
2450
|
+
static void
|
2451
|
+
_outCallStmt(OUT_TYPE(CallStmt, CallStmt) out, const CallStmt *node)
|
2452
|
+
{
|
2453
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(FuncCall, func_call, funccall, funccall, funccall);
|
2454
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(FuncExpr, func_expr, funcexpr, funcexpr, funcexpr);
|
2455
|
+
WRITE_LIST_FIELD(outargs, outargs, outargs);
|
2456
|
+
}
|
2457
|
+
|
2458
|
+
static void
|
2459
|
+
_outCallContext(OUT_TYPE(CallContext, CallContext) out, const CallContext *node)
|
2460
|
+
{
|
2461
|
+
WRITE_BOOL_FIELD(atomic, atomic, atomic);
|
2462
|
+
}
|
2463
|
+
|
2464
|
+
static void
|
2465
|
+
_outRenameStmt(OUT_TYPE(RenameStmt, RenameStmt) out, const RenameStmt *node)
|
2466
|
+
{
|
2467
|
+
WRITE_ENUM_FIELD(ObjectType, rename_type, renameType, renameType);
|
2468
|
+
WRITE_ENUM_FIELD(ObjectType, relation_type, relationType, relationType);
|
2469
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2470
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2471
|
+
WRITE_STRING_FIELD(subname, subname, subname);
|
2472
|
+
WRITE_STRING_FIELD(newname, newname, newname);
|
2473
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
2474
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2475
|
+
}
|
2476
|
+
|
2477
|
+
static void
|
2478
|
+
_outAlterObjectDependsStmt(OUT_TYPE(AlterObjectDependsStmt, AlterObjectDependsStmt) out, const AlterObjectDependsStmt *node)
|
2479
|
+
{
|
2480
|
+
WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType);
|
2481
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2482
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2483
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(String, string, extname, extname, extname);
|
2484
|
+
WRITE_BOOL_FIELD(remove, remove, remove);
|
2485
|
+
}
|
2486
|
+
|
2487
|
+
static void
|
2488
|
+
_outAlterObjectSchemaStmt(OUT_TYPE(AlterObjectSchemaStmt, AlterObjectSchemaStmt) out, const AlterObjectSchemaStmt *node)
|
2489
|
+
{
|
2490
|
+
WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType);
|
2491
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2492
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2493
|
+
WRITE_STRING_FIELD(newschema, newschema, newschema);
|
2494
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2495
|
+
}
|
2496
|
+
|
2497
|
+
static void
|
2498
|
+
_outAlterOwnerStmt(OUT_TYPE(AlterOwnerStmt, AlterOwnerStmt) out, const AlterOwnerStmt *node)
|
2499
|
+
{
|
2500
|
+
WRITE_ENUM_FIELD(ObjectType, object_type, objectType, objectType);
|
2501
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2502
|
+
WRITE_NODE_PTR_FIELD(object, object, object);
|
2503
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newowner, newowner, newowner);
|
2504
|
+
}
|
2505
|
+
|
2506
|
+
static void
|
2507
|
+
_outAlterOperatorStmt(OUT_TYPE(AlterOperatorStmt, AlterOperatorStmt) out, const AlterOperatorStmt *node)
|
2508
|
+
{
|
2509
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, opername, opername, opername);
|
2173
2510
|
WRITE_LIST_FIELD(options, options, options);
|
2174
|
-
WRITE_STRING_FIELD(indexname, indexname, indexname);
|
2175
|
-
WRITE_STRING_FIELD(indexspace, indexspace, indexspace);
|
2176
|
-
WRITE_BOOL_FIELD(reset_default_tblspc, reset_default_tblspc, reset_default_tblspc);
|
2177
|
-
WRITE_STRING_FIELD(access_method, access_method, access_method);
|
2178
|
-
WRITE_NODE_PTR_FIELD(where_clause, where_clause, where_clause);
|
2179
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, pktable, pktable, pktable);
|
2180
|
-
WRITE_LIST_FIELD(fk_attrs, fk_attrs, fk_attrs);
|
2181
|
-
WRITE_LIST_FIELD(pk_attrs, pk_attrs, pk_attrs);
|
2182
|
-
WRITE_CHAR_FIELD(fk_matchtype, fk_matchtype, fk_matchtype);
|
2183
|
-
WRITE_CHAR_FIELD(fk_upd_action, fk_upd_action, fk_upd_action);
|
2184
|
-
WRITE_CHAR_FIELD(fk_del_action, fk_del_action, fk_del_action);
|
2185
|
-
WRITE_LIST_FIELD(fk_del_set_cols, fk_del_set_cols, fk_del_set_cols);
|
2186
|
-
WRITE_LIST_FIELD(old_conpfeqop, old_conpfeqop, old_conpfeqop);
|
2187
|
-
WRITE_UINT_FIELD(old_pktable_oid, old_pktable_oid, old_pktable_oid);
|
2188
|
-
WRITE_BOOL_FIELD(skip_validation, skip_validation, skip_validation);
|
2189
|
-
WRITE_BOOL_FIELD(initially_valid, initially_valid, initially_valid);
|
2190
2511
|
}
|
2191
2512
|
|
2192
2513
|
static void
|
2193
|
-
|
2514
|
+
_outAlterTypeStmt(OUT_TYPE(AlterTypeStmt, AlterTypeStmt) out, const AlterTypeStmt *node)
|
2194
2515
|
{
|
2195
|
-
|
2196
|
-
|
2197
|
-
|
2198
|
-
|
2516
|
+
WRITE_LIST_FIELD(type_name, typeName, typeName);
|
2517
|
+
WRITE_LIST_FIELD(options, options, options);
|
2518
|
+
}
|
2519
|
+
|
2520
|
+
static void
|
2521
|
+
_outRuleStmt(OUT_TYPE(RuleStmt, RuleStmt) out, const RuleStmt *node)
|
2522
|
+
{
|
2523
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2524
|
+
WRITE_STRING_FIELD(rulename, rulename, rulename);
|
2525
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
2526
|
+
WRITE_ENUM_FIELD(CmdType, event, event, event);
|
2527
|
+
WRITE_BOOL_FIELD(instead, instead, instead);
|
2528
|
+
WRITE_LIST_FIELD(actions, actions, actions);
|
2529
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2530
|
+
}
|
2531
|
+
|
2532
|
+
static void
|
2533
|
+
_outNotifyStmt(OUT_TYPE(NotifyStmt, NotifyStmt) out, const NotifyStmt *node)
|
2534
|
+
{
|
2535
|
+
WRITE_STRING_FIELD(conditionname, conditionname, conditionname);
|
2536
|
+
WRITE_STRING_FIELD(payload, payload, payload);
|
2537
|
+
}
|
2538
|
+
|
2539
|
+
static void
|
2540
|
+
_outListenStmt(OUT_TYPE(ListenStmt, ListenStmt) out, const ListenStmt *node)
|
2541
|
+
{
|
2542
|
+
WRITE_STRING_FIELD(conditionname, conditionname, conditionname);
|
2543
|
+
}
|
2544
|
+
|
2545
|
+
static void
|
2546
|
+
_outUnlistenStmt(OUT_TYPE(UnlistenStmt, UnlistenStmt) out, const UnlistenStmt *node)
|
2547
|
+
{
|
2548
|
+
WRITE_STRING_FIELD(conditionname, conditionname, conditionname);
|
2549
|
+
}
|
2550
|
+
|
2551
|
+
static void
|
2552
|
+
_outTransactionStmt(OUT_TYPE(TransactionStmt, TransactionStmt) out, const TransactionStmt *node)
|
2553
|
+
{
|
2554
|
+
WRITE_ENUM_FIELD(TransactionStmtKind, kind, kind, kind);
|
2555
|
+
WRITE_LIST_FIELD(options, options, options);
|
2556
|
+
WRITE_STRING_FIELD(savepoint_name, savepoint_name, savepoint_name);
|
2557
|
+
WRITE_STRING_FIELD(gid, gid, gid);
|
2558
|
+
WRITE_BOOL_FIELD(chain, chain, chain);
|
2199
2559
|
WRITE_INT_FIELD(location, location, location);
|
2200
2560
|
}
|
2201
2561
|
|
2202
2562
|
static void
|
2203
|
-
|
2563
|
+
_outCompositeTypeStmt(OUT_TYPE(CompositeTypeStmt, CompositeTypeStmt) out, const CompositeTypeStmt *node)
|
2204
2564
|
{
|
2205
|
-
|
2206
|
-
|
2207
|
-
WRITE_CHAR_FIELD(relkind, relkind, relkind);
|
2208
|
-
WRITE_INT_FIELD(rellockmode, rellockmode, rellockmode);
|
2209
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(TableSampleClause, table_sample_clause, tablesample, tablesample, tablesample);
|
2210
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(Query, query, subquery, subquery, subquery);
|
2211
|
-
WRITE_BOOL_FIELD(security_barrier, security_barrier, security_barrier);
|
2212
|
-
WRITE_ENUM_FIELD(JoinType, jointype, jointype, jointype);
|
2213
|
-
WRITE_INT_FIELD(joinmergedcols, joinmergedcols, joinmergedcols);
|
2214
|
-
WRITE_LIST_FIELD(joinaliasvars, joinaliasvars, joinaliasvars);
|
2215
|
-
WRITE_LIST_FIELD(joinleftcols, joinleftcols, joinleftcols);
|
2216
|
-
WRITE_LIST_FIELD(joinrightcols, joinrightcols, joinrightcols);
|
2217
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, join_using_alias, join_using_alias, join_using_alias);
|
2218
|
-
WRITE_LIST_FIELD(functions, functions, functions);
|
2219
|
-
WRITE_BOOL_FIELD(funcordinality, funcordinality, funcordinality);
|
2220
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(TableFunc, table_func, tablefunc, tablefunc, tablefunc);
|
2221
|
-
WRITE_LIST_FIELD(values_lists, values_lists, values_lists);
|
2222
|
-
WRITE_STRING_FIELD(ctename, ctename, ctename);
|
2223
|
-
WRITE_UINT_FIELD(ctelevelsup, ctelevelsup, ctelevelsup);
|
2224
|
-
WRITE_BOOL_FIELD(self_reference, self_reference, self_reference);
|
2225
|
-
WRITE_LIST_FIELD(coltypes, coltypes, coltypes);
|
2226
|
-
WRITE_LIST_FIELD(coltypmods, coltypmods, coltypmods);
|
2227
|
-
WRITE_LIST_FIELD(colcollations, colcollations, colcollations);
|
2228
|
-
WRITE_STRING_FIELD(enrname, enrname, enrname);
|
2229
|
-
WRITE_FLOAT_FIELD(enrtuples, enrtuples, enrtuples);
|
2230
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, alias, alias, alias);
|
2231
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(Alias, alias, eref, eref, eref);
|
2232
|
-
WRITE_BOOL_FIELD(lateral, lateral, lateral);
|
2233
|
-
WRITE_BOOL_FIELD(inh, inh, inh);
|
2234
|
-
WRITE_BOOL_FIELD(in_from_cl, inFromCl, inFromCl);
|
2235
|
-
WRITE_UINT_FIELD(required_perms, requiredPerms, requiredPerms);
|
2236
|
-
WRITE_UINT_FIELD(check_as_user, checkAsUser, checkAsUser);
|
2237
|
-
WRITE_BITMAPSET_FIELD(selected_cols, selectedCols, selectedCols);
|
2238
|
-
WRITE_BITMAPSET_FIELD(inserted_cols, insertedCols, insertedCols);
|
2239
|
-
WRITE_BITMAPSET_FIELD(updated_cols, updatedCols, updatedCols);
|
2240
|
-
WRITE_BITMAPSET_FIELD(extra_updated_cols, extraUpdatedCols, extraUpdatedCols);
|
2241
|
-
WRITE_LIST_FIELD(security_quals, securityQuals, securityQuals);
|
2565
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, typevar, typevar, typevar);
|
2566
|
+
WRITE_LIST_FIELD(coldeflist, coldeflist, coldeflist);
|
2242
2567
|
}
|
2243
2568
|
|
2244
2569
|
static void
|
2245
|
-
|
2570
|
+
_outCreateEnumStmt(OUT_TYPE(CreateEnumStmt, CreateEnumStmt) out, const CreateEnumStmt *node)
|
2246
2571
|
{
|
2247
|
-
|
2248
|
-
|
2249
|
-
WRITE_LIST_FIELD(funccolnames, funccolnames, funccolnames);
|
2250
|
-
WRITE_LIST_FIELD(funccoltypes, funccoltypes, funccoltypes);
|
2251
|
-
WRITE_LIST_FIELD(funccoltypmods, funccoltypmods, funccoltypmods);
|
2252
|
-
WRITE_LIST_FIELD(funccolcollations, funccolcollations, funccolcollations);
|
2253
|
-
WRITE_BITMAPSET_FIELD(funcparams, funcparams, funcparams);
|
2572
|
+
WRITE_LIST_FIELD(type_name, typeName, typeName);
|
2573
|
+
WRITE_LIST_FIELD(vals, vals, vals);
|
2254
2574
|
}
|
2255
2575
|
|
2256
2576
|
static void
|
2257
|
-
|
2577
|
+
_outCreateRangeStmt(OUT_TYPE(CreateRangeStmt, CreateRangeStmt) out, const CreateRangeStmt *node)
|
2258
2578
|
{
|
2259
|
-
|
2260
|
-
WRITE_LIST_FIELD(
|
2261
|
-
WRITE_NODE_PTR_FIELD(repeatable, repeatable, repeatable);
|
2579
|
+
WRITE_LIST_FIELD(type_name, typeName, typeName);
|
2580
|
+
WRITE_LIST_FIELD(params, params, params);
|
2262
2581
|
}
|
2263
2582
|
|
2264
2583
|
static void
|
2265
|
-
|
2584
|
+
_outAlterEnumStmt(OUT_TYPE(AlterEnumStmt, AlterEnumStmt) out, const AlterEnumStmt *node)
|
2266
2585
|
{
|
2267
|
-
|
2268
|
-
WRITE_STRING_FIELD(
|
2269
|
-
WRITE_STRING_FIELD(
|
2270
|
-
|
2271
|
-
WRITE_BOOL_FIELD(
|
2586
|
+
WRITE_LIST_FIELD(type_name, typeName, typeName);
|
2587
|
+
WRITE_STRING_FIELD(old_val, oldVal, oldVal);
|
2588
|
+
WRITE_STRING_FIELD(new_val, newVal, newVal);
|
2589
|
+
WRITE_STRING_FIELD(new_val_neighbor, newValNeighbor, newValNeighbor);
|
2590
|
+
WRITE_BOOL_FIELD(new_val_is_after, newValIsAfter, newValIsAfter);
|
2591
|
+
WRITE_BOOL_FIELD(skip_if_new_val_exists, skipIfNewValExists, skipIfNewValExists);
|
2272
2592
|
}
|
2273
2593
|
|
2274
2594
|
static void
|
2275
|
-
|
2595
|
+
_outViewStmt(OUT_TYPE(ViewStmt, ViewStmt) out, const ViewStmt *node)
|
2276
2596
|
{
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
WRITE_BOOL_FIELD(
|
2281
|
-
|
2597
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, view, view, view);
|
2598
|
+
WRITE_LIST_FIELD(aliases, aliases, aliases);
|
2599
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
2600
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2601
|
+
WRITE_LIST_FIELD(options, options, options);
|
2602
|
+
WRITE_ENUM_FIELD(ViewCheckOption, with_check_option, withCheckOption, withCheckOption);
|
2282
2603
|
}
|
2283
2604
|
|
2284
2605
|
static void
|
2285
|
-
|
2606
|
+
_outLoadStmt(OUT_TYPE(LoadStmt, LoadStmt) out, const LoadStmt *node)
|
2286
2607
|
{
|
2287
|
-
|
2288
|
-
WRITE_LIST_FIELD(content, content, content);
|
2289
|
-
WRITE_INT_FIELD(location, location, location);
|
2608
|
+
WRITE_STRING_FIELD(filename, filename, filename);
|
2290
2609
|
}
|
2291
2610
|
|
2292
2611
|
static void
|
2293
|
-
|
2612
|
+
_outCreatedbStmt(OUT_TYPE(CreatedbStmt, CreatedbStmt) out, const CreatedbStmt *node)
|
2294
2613
|
{
|
2295
|
-
WRITE_STRING_FIELD(
|
2296
|
-
|
2297
|
-
|
2298
|
-
|
2299
|
-
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2614
|
+
WRITE_STRING_FIELD(dbname, dbname, dbname);
|
2615
|
+
WRITE_LIST_FIELD(options, options, options);
|
2616
|
+
}
|
2617
|
+
|
2618
|
+
static void
|
2619
|
+
_outAlterDatabaseStmt(OUT_TYPE(AlterDatabaseStmt, AlterDatabaseStmt) out, const AlterDatabaseStmt *node)
|
2620
|
+
{
|
2621
|
+
WRITE_STRING_FIELD(dbname, dbname, dbname);
|
2622
|
+
WRITE_LIST_FIELD(options, options, options);
|
2623
|
+
}
|
2624
|
+
|
2625
|
+
static void
|
2626
|
+
_outAlterDatabaseRefreshCollStmt(OUT_TYPE(AlterDatabaseRefreshCollStmt, AlterDatabaseRefreshCollStmt) out, const AlterDatabaseRefreshCollStmt *node)
|
2627
|
+
{
|
2628
|
+
WRITE_STRING_FIELD(dbname, dbname, dbname);
|
2629
|
+
}
|
2630
|
+
|
2631
|
+
static void
|
2632
|
+
_outAlterDatabaseSetStmt(OUT_TYPE(AlterDatabaseSetStmt, AlterDatabaseSetStmt) out, const AlterDatabaseSetStmt *node)
|
2633
|
+
{
|
2634
|
+
WRITE_STRING_FIELD(dbname, dbname, dbname);
|
2635
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt);
|
2636
|
+
}
|
2637
|
+
|
2638
|
+
static void
|
2639
|
+
_outDropdbStmt(OUT_TYPE(DropdbStmt, DropdbStmt) out, const DropdbStmt *node)
|
2640
|
+
{
|
2641
|
+
WRITE_STRING_FIELD(dbname, dbname, dbname);
|
2642
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2643
|
+
WRITE_LIST_FIELD(options, options, options);
|
2310
2644
|
}
|
2311
2645
|
|
2312
2646
|
static void
|
2313
|
-
|
2647
|
+
_outAlterSystemStmt(OUT_TYPE(AlterSystemStmt, AlterSystemStmt) out, const AlterSystemStmt *node)
|
2314
2648
|
{
|
2315
|
-
|
2316
|
-
WRITE_LIST_FIELD(objargs, objargs, objargs);
|
2317
|
-
WRITE_LIST_FIELD(objfuncargs, objfuncargs, objfuncargs);
|
2318
|
-
WRITE_BOOL_FIELD(args_unspecified, args_unspecified, args_unspecified);
|
2649
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(VariableSetStmt, variable_set_stmt, setstmt, setstmt, setstmt);
|
2319
2650
|
}
|
2320
2651
|
|
2321
2652
|
static void
|
2322
|
-
|
2653
|
+
_outClusterStmt(OUT_TYPE(ClusterStmt, ClusterStmt) out, const ClusterStmt *node)
|
2323
2654
|
{
|
2324
|
-
|
2325
|
-
|
2655
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2656
|
+
WRITE_STRING_FIELD(indexname, indexname, indexname);
|
2657
|
+
WRITE_LIST_FIELD(params, params, params);
|
2326
2658
|
}
|
2327
2659
|
|
2328
2660
|
static void
|
2329
|
-
|
2661
|
+
_outVacuumStmt(OUT_TYPE(VacuumStmt, VacuumStmt) out, const VacuumStmt *node)
|
2330
2662
|
{
|
2331
|
-
|
2332
|
-
|
2333
|
-
|
2334
|
-
WRITE_LIST_FIELD(order_family, order_family, order_family);
|
2335
|
-
WRITE_LIST_FIELD(class_args, class_args, class_args);
|
2336
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, storedtype, storedtype, storedtype);
|
2663
|
+
WRITE_LIST_FIELD(options, options, options);
|
2664
|
+
WRITE_LIST_FIELD(rels, rels, rels);
|
2665
|
+
WRITE_BOOL_FIELD(is_vacuumcmd, is_vacuumcmd, is_vacuumcmd);
|
2337
2666
|
}
|
2338
2667
|
|
2339
2668
|
static void
|
2340
|
-
|
2669
|
+
_outVacuumRelation(OUT_TYPE(VacuumRelation, VacuumRelation) out, const VacuumRelation *node)
|
2341
2670
|
{
|
2342
2671
|
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2343
|
-
WRITE_UINT_FIELD(
|
2344
|
-
|
2672
|
+
WRITE_UINT_FIELD(oid, oid, oid);
|
2673
|
+
WRITE_LIST_FIELD(va_cols, va_cols, va_cols);
|
2345
2674
|
}
|
2346
2675
|
|
2347
2676
|
static void
|
2348
|
-
|
2677
|
+
_outExplainStmt(OUT_TYPE(ExplainStmt, ExplainStmt) out, const ExplainStmt *node)
|
2349
2678
|
{
|
2350
|
-
|
2351
|
-
|
2352
|
-
WRITE_ENUM_FIELD(FunctionParameterMode, mode, mode, mode);
|
2353
|
-
WRITE_NODE_PTR_FIELD(defexpr, defexpr, defexpr);
|
2679
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
2680
|
+
WRITE_LIST_FIELD(options, options, options);
|
2354
2681
|
}
|
2355
2682
|
|
2356
2683
|
static void
|
2357
|
-
|
2684
|
+
_outCreateTableAsStmt(OUT_TYPE(CreateTableAsStmt, CreateTableAsStmt) out, const CreateTableAsStmt *node)
|
2358
2685
|
{
|
2359
|
-
|
2360
|
-
|
2361
|
-
WRITE_ENUM_FIELD(
|
2686
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
2687
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(IntoClause, into_clause, into, into, into);
|
2688
|
+
WRITE_ENUM_FIELD(ObjectType, objtype, objtype, objtype);
|
2689
|
+
WRITE_BOOL_FIELD(is_select_into, is_select_into, is_select_into);
|
2690
|
+
WRITE_BOOL_FIELD(if_not_exists, if_not_exists, if_not_exists);
|
2362
2691
|
}
|
2363
2692
|
|
2364
2693
|
static void
|
2365
|
-
|
2694
|
+
_outRefreshMatViewStmt(OUT_TYPE(RefreshMatViewStmt, RefreshMatViewStmt) out, const RefreshMatViewStmt *node)
|
2366
2695
|
{
|
2367
|
-
|
2368
|
-
|
2369
|
-
|
2370
|
-
WRITE_BOOL_FIELD(pushed_down, pushedDown, pushedDown);
|
2696
|
+
WRITE_BOOL_FIELD(concurrent, concurrent, concurrent);
|
2697
|
+
WRITE_BOOL_FIELD(skip_data, skipData, skipData);
|
2698
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2371
2699
|
}
|
2372
2700
|
|
2373
2701
|
static void
|
2374
|
-
|
2702
|
+
_outCheckPointStmt(OUT_TYPE(CheckPointStmt, CheckPointStmt) out, const CheckPointStmt *node)
|
2375
2703
|
{
|
2376
|
-
WRITE_ENUM_FIELD(XmlOptionType, xmloption, xmloption, xmloption);
|
2377
|
-
WRITE_NODE_PTR_FIELD(expr, expr, expr);
|
2378
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, typeName, typeName);
|
2379
|
-
WRITE_INT_FIELD(location, location, location);
|
2380
2704
|
}
|
2381
2705
|
|
2382
2706
|
static void
|
2383
|
-
|
2707
|
+
_outDiscardStmt(OUT_TYPE(DiscardStmt, DiscardStmt) out, const DiscardStmt *node)
|
2384
2708
|
{
|
2385
|
-
|
2386
|
-
WRITE_BOOL_FIELD(recursive, recursive, recursive);
|
2387
|
-
WRITE_INT_FIELD(location, location, location);
|
2709
|
+
WRITE_ENUM_FIELD(DiscardMode, target, target, target);
|
2388
2710
|
}
|
2389
2711
|
|
2390
2712
|
static void
|
2391
|
-
|
2713
|
+
_outLockStmt(OUT_TYPE(LockStmt, LockStmt) out, const LockStmt *node)
|
2392
2714
|
{
|
2393
|
-
WRITE_LIST_FIELD(
|
2394
|
-
|
2395
|
-
|
2396
|
-
WRITE_INT_FIELD(location, location, location);
|
2715
|
+
WRITE_LIST_FIELD(relations, relations, relations);
|
2716
|
+
WRITE_INT_FIELD(mode, mode, mode);
|
2717
|
+
WRITE_BOOL_FIELD(nowait, nowait, nowait);
|
2397
2718
|
}
|
2398
2719
|
|
2399
2720
|
static void
|
2400
|
-
|
2721
|
+
_outConstraintsSetStmt(OUT_TYPE(ConstraintsSetStmt, ConstraintsSetStmt) out, const ConstraintsSetStmt *node)
|
2401
2722
|
{
|
2402
|
-
|
2403
|
-
|
2404
|
-
WRITE_LIST_FIELD(target_list, targetList, targetList);
|
2405
|
-
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
2406
|
-
WRITE_INT_FIELD(location, location, location);
|
2723
|
+
WRITE_LIST_FIELD(constraints, constraints, constraints);
|
2724
|
+
WRITE_BOOL_FIELD(deferred, deferred, deferred);
|
2407
2725
|
}
|
2408
2726
|
|
2409
2727
|
static void
|
2410
|
-
|
2728
|
+
_outReindexStmt(OUT_TYPE(ReindexStmt, ReindexStmt) out, const ReindexStmt *node)
|
2411
2729
|
{
|
2412
|
-
|
2413
|
-
|
2414
|
-
WRITE_STRING_FIELD(
|
2415
|
-
|
2730
|
+
WRITE_ENUM_FIELD(ReindexObjectType, kind, kind, kind);
|
2731
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2732
|
+
WRITE_STRING_FIELD(name, name, name);
|
2733
|
+
WRITE_LIST_FIELD(params, params, params);
|
2416
2734
|
}
|
2417
2735
|
|
2418
2736
|
static void
|
2419
|
-
|
2737
|
+
_outCreateConversionStmt(OUT_TYPE(CreateConversionStmt, CreateConversionStmt) out, const CreateConversionStmt *node)
|
2420
2738
|
{
|
2421
|
-
WRITE_LIST_FIELD(
|
2422
|
-
WRITE_STRING_FIELD(
|
2423
|
-
|
2424
|
-
|
2425
|
-
|
2426
|
-
WRITE_INT_FIELD(location, location, location);
|
2427
|
-
WRITE_UINT_FIELD(cycle_mark_type, cycle_mark_type, cycle_mark_type);
|
2428
|
-
WRITE_INT_FIELD(cycle_mark_typmod, cycle_mark_typmod, cycle_mark_typmod);
|
2429
|
-
WRITE_UINT_FIELD(cycle_mark_collation, cycle_mark_collation, cycle_mark_collation);
|
2430
|
-
WRITE_UINT_FIELD(cycle_mark_neop, cycle_mark_neop, cycle_mark_neop);
|
2739
|
+
WRITE_LIST_FIELD(conversion_name, conversion_name, conversion_name);
|
2740
|
+
WRITE_STRING_FIELD(for_encoding_name, for_encoding_name, for_encoding_name);
|
2741
|
+
WRITE_STRING_FIELD(to_encoding_name, to_encoding_name, to_encoding_name);
|
2742
|
+
WRITE_LIST_FIELD(func_name, func_name, func_name);
|
2743
|
+
WRITE_BOOL_FIELD(def, def, def);
|
2431
2744
|
}
|
2432
2745
|
|
2433
2746
|
static void
|
2434
|
-
|
2747
|
+
_outCreateCastStmt(OUT_TYPE(CreateCastStmt, CreateCastStmt) out, const CreateCastStmt *node)
|
2435
2748
|
{
|
2436
|
-
|
2437
|
-
|
2438
|
-
|
2439
|
-
|
2440
|
-
|
2441
|
-
WRITE_SPECIFIC_NODE_PTR_FIELD(CTECycleClause, ctecycle_clause, cycle_clause, cycle_clause, cycle_clause);
|
2442
|
-
WRITE_INT_FIELD(location, location, location);
|
2443
|
-
WRITE_BOOL_FIELD(cterecursive, cterecursive, cterecursive);
|
2444
|
-
WRITE_INT_FIELD(cterefcount, cterefcount, cterefcount);
|
2445
|
-
WRITE_LIST_FIELD(ctecolnames, ctecolnames, ctecolnames);
|
2446
|
-
WRITE_LIST_FIELD(ctecoltypes, ctecoltypes, ctecoltypes);
|
2447
|
-
WRITE_LIST_FIELD(ctecoltypmods, ctecoltypmods, ctecoltypmods);
|
2448
|
-
WRITE_LIST_FIELD(ctecolcollations, ctecolcollations, ctecolcollations);
|
2749
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, sourcetype, sourcetype, sourcetype);
|
2750
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, targettype, targettype, targettype);
|
2751
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, func, func, func);
|
2752
|
+
WRITE_ENUM_FIELD(CoercionContext, context, context, context);
|
2753
|
+
WRITE_BOOL_FIELD(inout, inout, inout);
|
2449
2754
|
}
|
2450
2755
|
|
2451
2756
|
static void
|
2452
|
-
|
2757
|
+
_outCreateTransformStmt(OUT_TYPE(CreateTransformStmt, CreateTransformStmt) out, const CreateTransformStmt *node)
|
2453
2758
|
{
|
2454
|
-
WRITE_BOOL_FIELD(
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2458
|
-
|
2459
|
-
WRITE_LIST_FIELD(values, values, values);
|
2759
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2760
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(TypeName, type_name, type_name, type_name, type_name);
|
2761
|
+
WRITE_STRING_FIELD(lang, lang, lang);
|
2762
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, fromsql, fromsql, fromsql);
|
2763
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(ObjectWithArgs, object_with_args, tosql, tosql, tosql);
|
2460
2764
|
}
|
2461
2765
|
|
2462
2766
|
static void
|
2463
|
-
|
2767
|
+
_outPrepareStmt(OUT_TYPE(PrepareStmt, PrepareStmt) out, const PrepareStmt *node)
|
2464
2768
|
{
|
2465
|
-
|
2466
|
-
|
2467
|
-
|
2769
|
+
WRITE_STRING_FIELD(name, name, name);
|
2770
|
+
WRITE_LIST_FIELD(argtypes, argtypes, argtypes);
|
2771
|
+
WRITE_NODE_PTR_FIELD(query, query, query);
|
2468
2772
|
}
|
2469
2773
|
|
2470
2774
|
static void
|
2471
|
-
|
2775
|
+
_outExecuteStmt(OUT_TYPE(ExecuteStmt, ExecuteStmt) out, const ExecuteStmt *node)
|
2472
2776
|
{
|
2473
2777
|
WRITE_STRING_FIELD(name, name, name);
|
2474
|
-
|
2475
|
-
WRITE_BOOL_FIELD(is_table, isTable, isTable);
|
2778
|
+
WRITE_LIST_FIELD(params, params, params);
|
2476
2779
|
}
|
2477
2780
|
|
2478
2781
|
static void
|
2479
|
-
|
2782
|
+
_outDeallocateStmt(OUT_TYPE(DeallocateStmt, DeallocateStmt) out, const DeallocateStmt *node)
|
2480
2783
|
{
|
2481
2784
|
WRITE_STRING_FIELD(name, name, name);
|
2482
|
-
|
2483
|
-
WRITE_LIST_FIELD(collation, collation, collation);
|
2484
|
-
WRITE_LIST_FIELD(opclass, opclass, opclass);
|
2785
|
+
WRITE_BOOL_FIELD(isall, isall, isall);
|
2485
2786
|
WRITE_INT_FIELD(location, location, location);
|
2486
2787
|
}
|
2487
2788
|
|
2488
2789
|
static void
|
2489
|
-
|
2790
|
+
_outDropOwnedStmt(OUT_TYPE(DropOwnedStmt, DropOwnedStmt) out, const DropOwnedStmt *node)
|
2490
2791
|
{
|
2491
|
-
|
2492
|
-
|
2493
|
-
WRITE_INT_FIELD(location, location, location);
|
2792
|
+
WRITE_LIST_FIELD(roles, roles, roles);
|
2793
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
2494
2794
|
}
|
2495
2795
|
|
2496
2796
|
static void
|
2497
|
-
|
2797
|
+
_outReassignOwnedStmt(OUT_TYPE(ReassignOwnedStmt, ReassignOwnedStmt) out, const ReassignOwnedStmt *node)
|
2498
2798
|
{
|
2499
|
-
|
2500
|
-
|
2501
|
-
WRITE_INT_FIELD(modulus, modulus, modulus);
|
2502
|
-
WRITE_INT_FIELD(remainder, remainder, remainder);
|
2503
|
-
WRITE_LIST_FIELD(listdatums, listdatums, listdatums);
|
2504
|
-
WRITE_LIST_FIELD(lowerdatums, lowerdatums, lowerdatums);
|
2505
|
-
WRITE_LIST_FIELD(upperdatums, upperdatums, upperdatums);
|
2506
|
-
WRITE_INT_FIELD(location, location, location);
|
2799
|
+
WRITE_LIST_FIELD(roles, roles, roles);
|
2800
|
+
WRITE_SPECIFIC_NODE_PTR_FIELD(RoleSpec, role_spec, newrole, newrole, newrole);
|
2507
2801
|
}
|
2508
2802
|
|
2509
2803
|
static void
|
2510
|
-
|
2804
|
+
_outAlterTSDictionaryStmt(OUT_TYPE(AlterTSDictionaryStmt, AlterTSDictionaryStmt) out, const AlterTSDictionaryStmt *node)
|
2511
2805
|
{
|
2512
|
-
|
2513
|
-
|
2514
|
-
WRITE_INT_FIELD(location, location, location);
|
2806
|
+
WRITE_LIST_FIELD(dictname, dictname, dictname);
|
2807
|
+
WRITE_LIST_FIELD(options, options, options);
|
2515
2808
|
}
|
2516
2809
|
|
2517
2810
|
static void
|
2518
|
-
|
2811
|
+
_outAlterTSConfigurationStmt(OUT_TYPE(AlterTSConfigurationStmt, AlterTSConfigurationStmt) out, const AlterTSConfigurationStmt *node)
|
2519
2812
|
{
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2813
|
+
WRITE_ENUM_FIELD(AlterTSConfigType, kind, kind, kind);
|
2814
|
+
WRITE_LIST_FIELD(cfgname, cfgname, cfgname);
|
2815
|
+
WRITE_LIST_FIELD(tokentype, tokentype, tokentype);
|
2816
|
+
WRITE_LIST_FIELD(dicts, dicts, dicts);
|
2817
|
+
WRITE_BOOL_FIELD(override, override, override);
|
2818
|
+
WRITE_BOOL_FIELD(replace, replace, replace);
|
2819
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2523
2820
|
}
|
2524
2821
|
|
2525
2822
|
static void
|
2526
|
-
|
2823
|
+
_outPublicationTable(OUT_TYPE(PublicationTable, PublicationTable) out, const PublicationTable *node)
|
2527
2824
|
{
|
2528
2825
|
WRITE_SPECIFIC_NODE_PTR_FIELD(RangeVar, range_var, relation, relation, relation);
|
2529
|
-
|
2530
|
-
WRITE_LIST_FIELD(
|
2826
|
+
WRITE_NODE_PTR_FIELD(where_clause, whereClause, whereClause);
|
2827
|
+
WRITE_LIST_FIELD(columns, columns, columns);
|
2531
2828
|
}
|
2532
2829
|
|
2533
2830
|
static void
|
@@ -2540,25 +2837,48 @@ _outPublicationObjSpec(OUT_TYPE(PublicationObjSpec, PublicationObjSpec) out, con
|
|
2540
2837
|
}
|
2541
2838
|
|
2542
2839
|
static void
|
2543
|
-
|
2840
|
+
_outCreatePublicationStmt(OUT_TYPE(CreatePublicationStmt, CreatePublicationStmt) out, const CreatePublicationStmt *node)
|
2544
2841
|
{
|
2545
|
-
|
2546
|
-
|
2547
|
-
WRITE_LIST_FIELD(
|
2842
|
+
WRITE_STRING_FIELD(pubname, pubname, pubname);
|
2843
|
+
WRITE_LIST_FIELD(options, options, options);
|
2844
|
+
WRITE_LIST_FIELD(pubobjects, pubobjects, pubobjects);
|
2845
|
+
WRITE_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables);
|
2548
2846
|
}
|
2549
2847
|
|
2550
2848
|
static void
|
2551
|
-
|
2849
|
+
_outAlterPublicationStmt(OUT_TYPE(AlterPublicationStmt, AlterPublicationStmt) out, const AlterPublicationStmt *node)
|
2552
2850
|
{
|
2553
|
-
WRITE_STRING_FIELD(
|
2554
|
-
|
2555
|
-
|
2556
|
-
WRITE_BOOL_FIELD(
|
2851
|
+
WRITE_STRING_FIELD(pubname, pubname, pubname);
|
2852
|
+
WRITE_LIST_FIELD(options, options, options);
|
2853
|
+
WRITE_LIST_FIELD(pubobjects, pubobjects, pubobjects);
|
2854
|
+
WRITE_BOOL_FIELD(for_all_tables, for_all_tables, for_all_tables);
|
2855
|
+
WRITE_ENUM_FIELD(AlterPublicationAction, action, action, action);
|
2557
2856
|
}
|
2558
2857
|
|
2559
2858
|
static void
|
2560
|
-
|
2859
|
+
_outCreateSubscriptionStmt(OUT_TYPE(CreateSubscriptionStmt, CreateSubscriptionStmt) out, const CreateSubscriptionStmt *node)
|
2561
2860
|
{
|
2562
|
-
|
2861
|
+
WRITE_STRING_FIELD(subname, subname, subname);
|
2862
|
+
WRITE_STRING_FIELD(conninfo, conninfo, conninfo);
|
2863
|
+
WRITE_LIST_FIELD(publication, publication, publication);
|
2864
|
+
WRITE_LIST_FIELD(options, options, options);
|
2865
|
+
}
|
2866
|
+
|
2867
|
+
static void
|
2868
|
+
_outAlterSubscriptionStmt(OUT_TYPE(AlterSubscriptionStmt, AlterSubscriptionStmt) out, const AlterSubscriptionStmt *node)
|
2869
|
+
{
|
2870
|
+
WRITE_ENUM_FIELD(AlterSubscriptionType, kind, kind, kind);
|
2871
|
+
WRITE_STRING_FIELD(subname, subname, subname);
|
2872
|
+
WRITE_STRING_FIELD(conninfo, conninfo, conninfo);
|
2873
|
+
WRITE_LIST_FIELD(publication, publication, publication);
|
2874
|
+
WRITE_LIST_FIELD(options, options, options);
|
2875
|
+
}
|
2876
|
+
|
2877
|
+
static void
|
2878
|
+
_outDropSubscriptionStmt(OUT_TYPE(DropSubscriptionStmt, DropSubscriptionStmt) out, const DropSubscriptionStmt *node)
|
2879
|
+
{
|
2880
|
+
WRITE_STRING_FIELD(subname, subname, subname);
|
2881
|
+
WRITE_BOOL_FIELD(missing_ok, missing_ok, missing_ok);
|
2882
|
+
WRITE_ENUM_FIELD(DropBehavior, behavior, behavior, behavior);
|
2563
2883
|
}
|
2564
2884
|
|