pg_query 2.0.3 → 5.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 +165 -0
- data/README.md +67 -29
- data/Rakefile +8 -23
- data/ext/pg_query/extconf.rb +21 -3
- data/ext/pg_query/include/pg_query.h +29 -4
- data/ext/pg_query/include/pg_query_enum_defs.c +551 -272
- data/ext/pg_query/include/pg_query_fingerprint_conds.c +563 -470
- data/ext/pg_query/include/pg_query_fingerprint_defs.c +5403 -3945
- data/ext/pg_query/include/pg_query_outfuncs_conds.c +402 -330
- data/ext/pg_query/include/pg_query_outfuncs_defs.c +1319 -1059
- data/ext/pg_query/include/pg_query_readfuncs_conds.c +141 -118
- data/ext/pg_query/include/pg_query_readfuncs_defs.c +1685 -1379
- data/ext/pg_query/include/{access → postgres/access}/amapi.h +47 -1
- data/ext/pg_query/include/{access → postgres/access}/attmap.h +5 -3
- data/ext/pg_query/include/{access → postgres/access}/attnum.h +2 -2
- data/ext/pg_query/include/{access → postgres/access}/clog.h +4 -2
- data/ext/pg_query/include/{access → postgres/access}/commit_ts.h +6 -9
- data/ext/pg_query/include/{access → postgres/access}/detoast.h +1 -11
- data/ext/pg_query/include/{access → postgres/access}/genam.h +21 -16
- data/ext/pg_query/include/{access → postgres/access}/gin.h +17 -4
- data/ext/pg_query/include/{access → postgres/access}/htup.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/htup_details.h +80 -88
- data/ext/pg_query/include/{access → postgres/access}/itup.h +61 -52
- data/ext/pg_query/include/{access → postgres/access}/parallel.h +2 -2
- data/ext/pg_query/include/{access → postgres/access}/printtup.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/relation.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/relscan.h +17 -2
- data/ext/pg_query/include/postgres/access/rmgr.h +62 -0
- data/ext/pg_query/include/{access → postgres/access}/rmgrlist.h +24 -24
- data/ext/pg_query/include/{access → postgres/access}/sdir.h +12 -3
- data/ext/pg_query/include/{access → postgres/access}/skey.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/stratnum.h +4 -2
- data/ext/pg_query/include/{access → postgres/access}/sysattr.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/table.h +2 -1
- data/ext/pg_query/include/{access → postgres/access}/tableam.h +337 -62
- data/ext/pg_query/include/postgres/access/toast_compression.h +73 -0
- data/ext/pg_query/include/{access → postgres/access}/transam.h +123 -13
- data/ext/pg_query/include/postgres/access/tsmapi.h +82 -0
- data/ext/pg_query/include/{access → postgres/access}/tupconvert.h +5 -2
- data/ext/pg_query/include/{access → postgres/access}/tupdesc.h +2 -2
- data/ext/pg_query/include/{access → postgres/access}/tupmacs.h +60 -100
- data/ext/pg_query/include/{access → postgres/access}/twophase.h +5 -1
- data/ext/pg_query/include/{access → postgres/access}/xact.h +99 -32
- data/ext/pg_query/include/{access → postgres/access}/xlog.h +69 -165
- data/ext/pg_query/include/{access → postgres/access}/xlog_internal.h +147 -73
- data/ext/pg_query/include/postgres/access/xlogbackup.h +41 -0
- data/ext/pg_query/include/{access → postgres/access}/xlogdefs.h +13 -40
- data/ext/pg_query/include/postgres/access/xlogprefetcher.h +55 -0
- data/ext/pg_query/include/{access → postgres/access}/xlogreader.h +154 -37
- data/ext/pg_query/include/{access → postgres/access}/xlogrecord.h +34 -13
- data/ext/pg_query/include/postgres/access/xlogrecovery.h +158 -0
- data/ext/pg_query/include/postgres/archive/archive_module.h +59 -0
- data/ext/pg_query/include/{c.h → postgres/c.h} +245 -188
- data/ext/pg_query/include/{catalog → postgres/catalog}/catalog.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/catversion.h +6 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/dependency.h +14 -19
- data/ext/pg_query/include/postgres/catalog/genbki.h +143 -0
- data/ext/pg_query/include/{catalog → postgres/catalog}/index.h +20 -5
- data/ext/pg_query/include/postgres/catalog/indexing.h +54 -0
- data/ext/pg_query/include/{catalog → postgres/catalog}/namespace.h +5 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/objectaccess.h +73 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/objectaddress.h +12 -7
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_aggregate.h +14 -10
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_aggregate_d.h +2 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_am.h +4 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_am_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_attribute.h +45 -26
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_attribute_d.h +19 -16
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_authid.h +7 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_authid_d.h +19 -9
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_class.h +45 -15
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_class_d.h +31 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_collation.h +35 -8
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_collation_d.h +21 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_constraint.h +39 -13
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_constraint_d.h +10 -4
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_control.h +13 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_conversion.h +8 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_conversion_d.h +4 -1
- data/ext/pg_query/include/postgres/catalog/pg_database.h +124 -0
- data/ext/pg_query/include/postgres/catalog/pg_database_d.h +52 -0
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_depend.h +11 -7
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_depend_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_event_trigger.h +9 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_event_trigger_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_index.h +17 -7
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_index_d.h +20 -17
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_language.h +10 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_language_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_namespace.h +7 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_namespace_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opclass.h +8 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opclass_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_operator.h +21 -16
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_operator_d.h +37 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opfamily.h +8 -4
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opfamily_d.h +6 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_partitioned_table.h +20 -9
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_partitioned_table_d.h +2 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_proc.h +20 -11
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_proc_d.h +10 -8
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_publication.h +49 -6
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_publication_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_replication_origin.h +6 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_replication_origin_d.h +5 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic.h +19 -12
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic_d.h +2 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic_ext.h +19 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic_ext_d.h +7 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_transform.h +8 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_transform_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_trigger.h +24 -8
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_trigger_d.h +4 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_config.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_config_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_dict.h +8 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_dict_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_parser.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_parser_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_template.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_template_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_type.h +56 -24
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_type_d.h +70 -31
- data/ext/pg_query/include/{catalog → postgres/catalog}/storage.h +9 -7
- data/ext/pg_query/include/{commands → postgres/commands}/async.h +4 -5
- data/ext/pg_query/include/{commands → postgres/commands}/dbcommands.h +3 -1
- data/ext/pg_query/include/{commands → postgres/commands}/defrem.h +12 -24
- data/ext/pg_query/include/{commands → postgres/commands}/event_trigger.h +2 -2
- data/ext/pg_query/include/{commands → postgres/commands}/explain.h +3 -1
- data/ext/pg_query/include/{commands → postgres/commands}/prepare.h +1 -1
- data/ext/pg_query/include/{commands → postgres/commands}/tablespace.h +6 -4
- data/ext/pg_query/include/{commands → postgres/commands}/trigger.h +36 -25
- data/ext/pg_query/include/{commands → postgres/commands}/user.h +10 -4
- data/ext/pg_query/include/{commands → postgres/commands}/vacuum.h +140 -47
- data/ext/pg_query/include/postgres/common/cryptohash.h +39 -0
- data/ext/pg_query/include/{common → postgres/common}/file_perm.h +4 -4
- data/ext/pg_query/include/{common → postgres/common}/hashfn.h +1 -1
- data/ext/pg_query/include/postgres/common/int.h +437 -0
- data/ext/pg_query/include/{common → postgres/common}/keywords.h +2 -6
- data/ext/pg_query/include/{common → postgres/common}/kwlookup.h +2 -2
- data/ext/pg_query/include/postgres/common/pg_prng.h +61 -0
- data/ext/pg_query/include/{common → postgres/common}/relpath.h +21 -14
- 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 +125 -0
- data/ext/pg_query/include/{common/unicode_combining_table.h → postgres/common/unicode_nonspacing_table.h} +138 -8
- data/ext/pg_query/include/postgres/copyfuncs.funcs.c +5013 -0
- data/ext/pg_query/include/postgres/copyfuncs.switch.c +938 -0
- data/ext/pg_query/include/{datatype → postgres/datatype}/timestamp.h +50 -4
- data/ext/pg_query/include/postgres/equalfuncs.funcs.c +3097 -0
- data/ext/pg_query/include/postgres/equalfuncs.switch.c +785 -0
- data/ext/pg_query/include/{executor → postgres/executor}/execdesc.h +1 -1
- data/ext/pg_query/include/{executor → postgres/executor}/executor.h +98 -32
- data/ext/pg_query/include/{executor → postgres/executor}/functions.h +17 -3
- data/ext/pg_query/include/{executor → postgres/executor}/instrument.h +33 -16
- data/ext/pg_query/include/{executor → postgres/executor}/spi.h +42 -4
- data/ext/pg_query/include/{executor → postgres/executor}/tablefunc.h +1 -1
- data/ext/pg_query/include/{executor → postgres/executor}/tuptable.h +18 -11
- data/ext/pg_query/include/{fmgr.h → postgres/fmgr.h} +33 -8
- data/ext/pg_query/include/postgres/foreign/fdwapi.h +294 -0
- data/ext/pg_query/include/{funcapi.h → postgres/funcapi.h} +22 -10
- data/ext/pg_query/include/postgres/gram.h +1127 -0
- data/ext/pg_query/include/{parser → postgres}/gramparse.h +4 -4
- data/ext/pg_query/include/{jit → postgres/jit}/jit.h +12 -12
- data/ext/pg_query/include/postgres/kwlist_d.h +1119 -0
- data/ext/pg_query/include/postgres/lib/dshash.h +115 -0
- data/ext/pg_query/include/{lib → postgres/lib}/ilist.h +454 -22
- data/ext/pg_query/include/{lib → postgres/lib}/pairingheap.h +1 -1
- data/ext/pg_query/include/{lib → postgres/lib}/simplehash.h +158 -33
- data/ext/pg_query/include/postgres/lib/sort_template.h +432 -0
- data/ext/pg_query/include/{lib → postgres/lib}/stringinfo.h +3 -3
- data/ext/pg_query/include/{libpq → postgres/libpq}/auth.h +12 -4
- data/ext/pg_query/include/{libpq → postgres/libpq}/crypt.h +5 -4
- data/ext/pg_query/include/{libpq → postgres/libpq}/hba.h +54 -8
- data/ext/pg_query/include/{libpq → postgres/libpq}/libpq-be.h +45 -17
- data/ext/pg_query/include/{libpq → postgres/libpq}/libpq.h +31 -20
- data/ext/pg_query/include/{libpq → postgres/libpq}/pqcomm.h +26 -71
- data/ext/pg_query/include/{libpq → postgres/libpq}/pqformat.h +2 -2
- data/ext/pg_query/include/{libpq → postgres/libpq}/pqsignal.h +25 -13
- 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/{mb → postgres/mb}/pg_wchar.h +125 -25
- data/ext/pg_query/include/{mb → postgres/mb}/stringinfo_mb.h +1 -1
- data/ext/pg_query/include/{miscadmin.h → postgres/miscadmin.h} +96 -65
- data/ext/pg_query/include/{nodes → postgres/nodes}/bitmapset.h +11 -7
- data/ext/pg_query/include/{nodes → postgres/nodes}/execnodes.h +351 -103
- data/ext/pg_query/include/{nodes → postgres/nodes}/extensible.h +8 -4
- data/ext/pg_query/include/{nodes → postgres/nodes}/lockoptions.h +1 -1
- data/ext/pg_query/include/{nodes → postgres/nodes}/makefuncs.h +19 -6
- data/ext/pg_query/include/{nodes → postgres/nodes}/memnodes.h +11 -6
- data/ext/pg_query/include/postgres/nodes/miscnodes.h +56 -0
- data/ext/pg_query/include/{nodes → postgres/nodes}/nodeFuncs.h +89 -29
- data/ext/pg_query/include/{nodes → postgres/nodes}/nodes.h +100 -496
- data/ext/pg_query/include/postgres/nodes/nodetags.h +471 -0
- data/ext/pg_query/include/{nodes → postgres/nodes}/params.h +3 -3
- data/ext/pg_query/include/{nodes → postgres/nodes}/parsenodes.h +678 -207
- data/ext/pg_query/include/{nodes → postgres/nodes}/pathnodes.h +1282 -454
- data/ext/pg_query/include/{nodes → postgres/nodes}/pg_list.h +103 -73
- data/ext/pg_query/include/{nodes → postgres/nodes}/plannodes.h +474 -133
- data/ext/pg_query/include/{nodes → postgres/nodes}/primnodes.h +754 -254
- data/ext/pg_query/include/{nodes → postgres/nodes}/print.h +1 -1
- data/ext/pg_query/include/postgres/nodes/queryjumble.h +86 -0
- data/ext/pg_query/include/postgres/nodes/replnodes.h +111 -0
- data/ext/pg_query/include/postgres/nodes/supportnodes.h +346 -0
- data/ext/pg_query/include/{nodes → postgres/nodes}/tidbitmap.h +1 -1
- data/ext/pg_query/include/postgres/nodes/value.h +90 -0
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/cost.h +14 -5
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/geqo.h +9 -7
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/geqo_gene.h +1 -1
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/optimizer.h +31 -28
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/paths.h +29 -12
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/planmain.h +15 -17
- data/ext/pg_query/include/{parser → postgres/parser}/analyze.h +20 -5
- data/ext/pg_query/include/postgres/parser/kwlist.h +498 -0
- data/ext/pg_query/include/{parser → postgres/parser}/parse_agg.h +5 -8
- data/ext/pg_query/include/{parser → postgres/parser}/parse_coerce.h +6 -1
- data/ext/pg_query/include/{parser → postgres/parser}/parse_expr.h +2 -3
- data/ext/pg_query/include/{parser → postgres/parser}/parse_func.h +2 -1
- data/ext/pg_query/include/{parser → postgres/parser}/parse_node.h +41 -11
- data/ext/pg_query/include/{parser → postgres/parser}/parse_oper.h +3 -5
- data/ext/pg_query/include/{parser → postgres/parser}/parse_relation.h +11 -5
- data/ext/pg_query/include/{parser → postgres/parser}/parse_type.h +4 -3
- data/ext/pg_query/include/postgres/parser/parser.h +68 -0
- data/ext/pg_query/include/{parser → postgres/parser}/parsetree.h +1 -1
- data/ext/pg_query/include/{parser → postgres/parser}/scanner.h +2 -2
- data/ext/pg_query/include/{parser → postgres/parser}/scansup.h +2 -5
- data/ext/pg_query/include/{partitioning → postgres/partitioning}/partdefs.h +1 -1
- data/ext/pg_query/include/{pg_config.h → postgres/pg_config.h} +216 -228
- data/ext/pg_query/include/{pg_config_manual.h → postgres/pg_config_manual.h} +80 -58
- data/ext/pg_query/include/postgres/pg_config_os.h +8 -0
- data/ext/pg_query/include/{pg_getopt.h → postgres/pg_getopt.h} +6 -6
- data/ext/pg_query/include/{pg_trace.h → postgres/pg_trace.h} +1 -1
- data/ext/pg_query/include/postgres/pgstat.h +778 -0
- data/ext/pg_query/include/{pgtime.h → postgres/pgtime.h} +16 -6
- data/ext/pg_query/include/{pl_gram.h → postgres/pl_gram.h} +116 -116
- data/ext/pg_query/include/{pl_reserved_kwlist.h → postgres/pl_reserved_kwlist.h} +1 -1
- data/ext/pg_query/include/{pl_reserved_kwlist_d.h → postgres/pl_reserved_kwlist_d.h} +10 -10
- data/ext/pg_query/include/{pl_unreserved_kwlist.h → postgres/pl_unreserved_kwlist.h} +3 -3
- data/ext/pg_query/include/{pl_unreserved_kwlist_d.h → postgres/pl_unreserved_kwlist_d.h} +60 -60
- data/ext/pg_query/include/{plerrcodes.h → postgres/plerrcodes.h} +9 -1
- data/ext/pg_query/include/{plpgsql.h → postgres/plpgsql.h} +79 -86
- data/ext/pg_query/include/{port → postgres/port}/atomics/arch-arm.h +9 -3
- data/ext/pg_query/include/postgres/port/atomics/arch-hppa.h +17 -0
- data/ext/pg_query/include/{port → postgres/port}/atomics/arch-ppc.h +21 -21
- data/ext/pg_query/include/{port → postgres/port}/atomics/arch-x86.h +2 -2
- data/ext/pg_query/include/{port → postgres/port}/atomics/fallback.h +3 -3
- data/ext/pg_query/include/{port → postgres/port}/atomics/generic-gcc.h +3 -3
- data/ext/pg_query/include/postgres/port/atomics/generic-msvc.h +101 -0
- data/ext/pg_query/include/postgres/port/atomics/generic-sunpro.h +106 -0
- data/ext/pg_query/include/{port → postgres/port}/atomics/generic.h +1 -1
- data/ext/pg_query/include/{port → postgres/port}/atomics.h +2 -7
- data/ext/pg_query/include/{port → postgres/port}/pg_bitutils.h +129 -16
- data/ext/pg_query/include/{port → postgres/port}/pg_bswap.h +1 -1
- data/ext/pg_query/include/{port → postgres/port}/pg_crc32c.h +1 -1
- data/ext/pg_query/include/postgres/port/simd.h +375 -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 +26 -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 +594 -0
- data/ext/pg_query/include/{port.h → postgres/port.h} +107 -111
- 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_ext.h → postgres/postgres_ext.h} +0 -1
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/autovacuum.h +17 -20
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/bgworker.h +3 -2
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/bgworker_internals.h +2 -2
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/bgwriter.h +6 -6
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/interrupt.h +1 -1
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/pgarch.h +7 -10
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/postmaster.h +21 -17
- data/ext/pg_query/include/postgres/postmaster/startup.h +41 -0
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/syslogger.h +16 -11
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/walwriter.h +5 -3
- data/ext/pg_query/include/{regex → postgres/regex}/regex.h +27 -22
- data/ext/pg_query/include/{replication → postgres/replication}/logicallauncher.h +8 -5
- data/ext/pg_query/include/postgres/replication/logicalproto.h +274 -0
- data/ext/pg_query/include/postgres/replication/logicalworker.h +32 -0
- data/ext/pg_query/include/{replication → postgres/replication}/origin.h +8 -8
- data/ext/pg_query/include/postgres/replication/reorderbuffer.h +753 -0
- data/ext/pg_query/include/{replication → postgres/replication}/slot.h +42 -12
- data/ext/pg_query/include/{replication → postgres/replication}/syncrep.h +6 -12
- data/ext/pg_query/include/{replication → postgres/replication}/walreceiver.h +158 -20
- data/ext/pg_query/include/{replication → postgres/replication}/walsender.h +20 -20
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/prs2lock.h +1 -1
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/rewriteHandler.h +1 -6
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/rewriteManip.h +11 -2
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/rewriteSupport.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/backendid.h +3 -3
- data/ext/pg_query/include/{storage → postgres/storage}/block.h +24 -37
- data/ext/pg_query/include/{storage → postgres/storage}/buf.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/bufmgr.h +196 -95
- data/ext/pg_query/include/{storage → postgres/storage}/bufpage.h +152 -101
- data/ext/pg_query/include/{storage → postgres/storage}/condition_variable.h +14 -3
- data/ext/pg_query/include/{storage → postgres/storage}/dsm.h +6 -6
- data/ext/pg_query/include/{storage → postgres/storage}/dsm_impl.h +6 -2
- data/ext/pg_query/include/{storage → postgres/storage}/fd.h +48 -14
- data/ext/pg_query/include/postgres/storage/fileset.h +40 -0
- data/ext/pg_query/include/{storage → postgres/storage}/ipc.h +5 -2
- data/ext/pg_query/include/{storage → postgres/storage}/item.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/itemid.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/itemptr.h +96 -57
- data/ext/pg_query/include/{storage → postgres/storage}/large_object.h +2 -2
- data/ext/pg_query/include/{storage → postgres/storage}/latch.h +17 -13
- data/ext/pg_query/include/{storage → postgres/storage}/lmgr.h +7 -1
- data/ext/pg_query/include/{storage → postgres/storage}/lock.h +37 -25
- data/ext/pg_query/include/{storage → postgres/storage}/lockdefs.h +4 -4
- data/ext/pg_query/include/{storage → postgres/storage}/lwlock.h +21 -33
- data/ext/pg_query/include/{storage → postgres/storage}/lwlocknames.h +0 -1
- data/ext/pg_query/include/{storage → postgres/storage}/off.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/pg_sema.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/pg_shmem.h +9 -7
- data/ext/pg_query/include/{storage → postgres/storage}/pmsignal.h +15 -4
- data/ext/pg_query/include/{storage → postgres/storage}/predicate.h +5 -5
- data/ext/pg_query/include/{storage → postgres/storage}/proc.h +200 -67
- data/ext/pg_query/include/postgres/storage/procarray.h +99 -0
- data/ext/pg_query/include/{storage → postgres/storage}/proclist_types.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/procsignal.h +5 -7
- data/ext/pg_query/include/postgres/storage/relfilelocator.h +99 -0
- data/ext/pg_query/include/{storage → postgres/storage}/s_lock.h +118 -298
- data/ext/pg_query/include/{storage → postgres/storage}/sharedfileset.h +3 -11
- data/ext/pg_query/include/{storage → postgres/storage}/shm_mq.h +5 -4
- data/ext/pg_query/include/{storage → postgres/storage}/shm_toc.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/shmem.h +1 -23
- data/ext/pg_query/include/{storage → postgres/storage}/sinval.h +5 -5
- data/ext/pg_query/include/{storage → postgres/storage}/sinvaladt.h +4 -2
- data/ext/pg_query/include/{storage → postgres/storage}/smgr.h +21 -17
- data/ext/pg_query/include/{storage → postgres/storage}/spin.h +2 -2
- data/ext/pg_query/include/{storage → postgres/storage}/standby.h +17 -9
- data/ext/pg_query/include/{storage → postgres/storage}/standbydefs.h +2 -2
- data/ext/pg_query/include/{storage → postgres/storage}/sync.h +9 -5
- data/ext/pg_query/include/{tcop → postgres/tcop}/cmdtag.h +7 -2
- data/ext/pg_query/include/{tcop → postgres/tcop}/cmdtaglist.h +3 -2
- data/ext/pg_query/include/{tcop → postgres/tcop}/deparse_utility.h +1 -1
- data/ext/pg_query/include/{tcop → postgres/tcop}/dest.h +1 -3
- data/ext/pg_query/include/{tcop → postgres/tcop}/fastpath.h +1 -2
- data/ext/pg_query/include/{tcop → postgres/tcop}/pquery.h +7 -1
- data/ext/pg_query/include/{tcop → postgres/tcop}/tcopprot.h +19 -14
- data/ext/pg_query/include/{tcop → postgres/tcop}/utility.h +7 -3
- data/ext/pg_query/include/{tsearch → postgres/tsearch}/ts_cache.h +3 -5
- data/ext/pg_query/include/{utils → postgres/utils}/acl.h +37 -71
- data/ext/pg_query/include/{utils → postgres/utils}/aclchk_internal.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/array.h +26 -2
- data/ext/pg_query/include/postgres/utils/backend_progress.h +45 -0
- data/ext/pg_query/include/postgres/utils/backend_status.h +342 -0
- data/ext/pg_query/include/{utils → postgres/utils}/builtins.h +20 -11
- data/ext/pg_query/include/{utils → postgres/utils}/bytea.h +3 -2
- data/ext/pg_query/include/{utils → postgres/utils}/catcache.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/date.h +37 -9
- data/ext/pg_query/include/{utils → postgres/utils}/datetime.h +48 -27
- data/ext/pg_query/include/{utils → postgres/utils}/datum.h +9 -1
- data/ext/pg_query/include/{utils → postgres/utils}/dsa.h +5 -1
- data/ext/pg_query/include/{utils → postgres/utils}/elog.h +154 -48
- data/ext/pg_query/include/{utils → postgres/utils}/errcodes.h +2 -0
- data/ext/pg_query/include/{utils → postgres/utils}/expandeddatum.h +14 -3
- data/ext/pg_query/include/{utils → postgres/utils}/expandedrecord.h +14 -4
- data/ext/pg_query/include/{utils → postgres/utils}/float.h +13 -12
- data/ext/pg_query/include/{utils → postgres/utils}/fmgroids.h +1353 -696
- data/ext/pg_query/include/{utils → postgres/utils}/fmgrprotos.h +243 -18
- data/ext/pg_query/include/{utils → postgres/utils}/fmgrtab.h +6 -5
- data/ext/pg_query/include/{utils → postgres/utils}/guc.h +120 -121
- data/ext/pg_query/include/postgres/utils/guc_hooks.h +163 -0
- data/ext/pg_query/include/{utils → postgres/utils}/guc_tables.h +71 -21
- data/ext/pg_query/include/{utils → postgres/utils}/hsearch.h +15 -11
- data/ext/pg_query/include/{utils → postgres/utils}/inval.h +7 -3
- data/ext/pg_query/include/postgres/utils/logtape.h +77 -0
- data/ext/pg_query/include/{utils → postgres/utils}/lsyscache.h +16 -1
- data/ext/pg_query/include/{utils → postgres/utils}/memdebug.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/memutils.h +14 -53
- data/ext/pg_query/include/postgres/utils/memutils_internal.h +136 -0
- data/ext/pg_query/include/postgres/utils/memutils_memorychunk.h +237 -0
- data/ext/pg_query/include/{utils → postgres/utils}/numeric.h +38 -9
- data/ext/pg_query/include/{utils → postgres/utils}/palloc.h +33 -4
- data/ext/pg_query/include/{utils → postgres/utils}/partcache.h +3 -2
- data/ext/pg_query/include/{utils → postgres/utils}/pg_locale.h +37 -21
- data/ext/pg_query/include/postgres/utils/pgstat_internal.h +814 -0
- data/ext/pg_query/include/{utils → postgres/utils}/plancache.h +6 -5
- data/ext/pg_query/include/{utils → postgres/utils}/portal.h +12 -1
- data/ext/pg_query/include/{utils → postgres/utils}/probes.h +59 -59
- data/ext/pg_query/include/postgres/utils/ps_status.h +47 -0
- data/ext/pg_query/include/{utils → postgres/utils}/queryenvironment.h +1 -1
- data/ext/pg_query/include/postgres/utils/regproc.h +39 -0
- data/ext/pg_query/include/{utils → postgres/utils}/rel.h +129 -61
- data/ext/pg_query/include/{utils → postgres/utils}/relcache.h +21 -14
- data/ext/pg_query/include/{utils → postgres/utils}/reltrigger.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/resowner.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/ruleutils.h +9 -1
- data/ext/pg_query/include/{utils → postgres/utils}/sharedtuplestore.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/snapmgr.h +38 -15
- data/ext/pg_query/include/{utils → postgres/utils}/snapshot.h +14 -1
- data/ext/pg_query/include/{utils → postgres/utils}/sortsupport.h +117 -2
- data/ext/pg_query/include/{utils → postgres/utils}/syscache.h +9 -1
- data/ext/pg_query/include/{utils → postgres/utils}/timeout.h +11 -4
- data/ext/pg_query/include/{utils → postgres/utils}/timestamp.h +46 -15
- data/ext/pg_query/include/{utils → postgres/utils}/tuplesort.h +209 -41
- data/ext/pg_query/include/{utils → postgres/utils}/tuplestore.h +2 -2
- data/ext/pg_query/include/{utils → postgres/utils}/typcache.h +24 -17
- data/ext/pg_query/include/{utils → postgres/utils}/varlena.h +17 -3
- data/ext/pg_query/include/postgres/utils/wait_event.h +294 -0
- data/ext/pg_query/include/{utils → postgres/utils}/xml.h +18 -8
- data/ext/pg_query/include/{postgres.h → postgres/varatt.h} +65 -471
- data/ext/pg_query/include/protobuf/pg_query.pb-c.h +7494 -6382
- data/ext/pg_query/include/protobuf/pg_query.pb.h +116922 -84792
- data/ext/pg_query/include/protobuf-c/protobuf-c.h +7 -3
- data/ext/pg_query/include/protobuf-c.h +7 -3
- data/ext/pg_query/pg_query.c +10 -1
- data/ext/pg_query/pg_query.pb-c.c +21026 -17002
- data/ext/pg_query/pg_query_deparse.c +1 -9896
- data/ext/pg_query/pg_query_fingerprint.c +162 -50
- data/ext/pg_query/pg_query_fingerprint.h +3 -1
- data/ext/pg_query/pg_query_internal.h +1 -1
- data/ext/pg_query/pg_query_json_plpgsql.c +56 -12
- data/ext/pg_query/pg_query_normalize.c +259 -64
- data/ext/pg_query/pg_query_outfuncs.h +1 -0
- data/ext/pg_query/pg_query_outfuncs_json.c +71 -16
- data/ext/pg_query/pg_query_outfuncs_protobuf.c +73 -12
- data/ext/pg_query/pg_query_parse.c +47 -5
- data/ext/pg_query/pg_query_parse_plpgsql.c +86 -21
- data/ext/pg_query/pg_query_readfuncs_protobuf.c +43 -8
- data/ext/pg_query/pg_query_ruby.c +6 -1
- data/ext/pg_query/pg_query_ruby_freebsd.sym +2 -0
- data/ext/pg_query/pg_query_scan.c +3 -2
- data/ext/pg_query/pg_query_split.c +6 -5
- data/ext/pg_query/postgres_deparse.c +11067 -0
- data/ext/pg_query/postgres_deparse.h +9 -0
- data/ext/pg_query/protobuf-c.c +34 -27
- data/ext/pg_query/src_backend_catalog_namespace.c +27 -10
- data/ext/pg_query/src_backend_catalog_pg_proc.c +4 -1
- data/ext/pg_query/src_backend_commands_define.c +11 -1
- data/ext/pg_query/src_backend_nodes_bitmapset.c +13 -70
- data/ext/pg_query/src_backend_nodes_copyfuncs.c +103 -5894
- data/ext/pg_query/src_backend_nodes_equalfuncs.c +102 -3830
- data/ext/pg_query/src_backend_nodes_extensible.c +6 -29
- data/ext/pg_query/src_backend_nodes_list.c +99 -12
- data/ext/pg_query/src_backend_nodes_makefuncs.c +99 -4
- data/ext/pg_query/src_backend_nodes_nodeFuncs.c +325 -131
- data/ext/pg_query/src_backend_nodes_nodes.c +38 -0
- data/ext/pg_query/src_backend_nodes_value.c +28 -19
- data/ext/pg_query/src_backend_parser_gram.c +36104 -32074
- data/ext/pg_query/src_backend_parser_parser.c +53 -8
- data/ext/pg_query/src_backend_parser_scan.c +4893 -3701
- data/ext/pg_query/src_backend_parser_scansup.c +4 -28
- data/ext/pg_query/src_backend_storage_ipc_ipc.c +13 -4
- data/ext/pg_query/src_backend_tcop_postgres.c +133 -105
- data/ext/pg_query/src_backend_utils_activity_pgstat_database.c +140 -0
- data/ext/pg_query/src_backend_utils_adt_datum.c +17 -7
- data/ext/pg_query/src_backend_utils_adt_expandeddatum.c +1 -1
- data/ext/pg_query/src_backend_utils_adt_format_type.c +6 -2
- data/ext/pg_query/src_backend_utils_adt_numutils.c +489 -0
- data/ext/pg_query/src_backend_utils_adt_ruleutils.c +187 -19
- data/ext/pg_query/src_backend_utils_error_assert.c +17 -18
- data/ext/pg_query/src_backend_utils_error_elog.c +513 -318
- data/ext/pg_query/src_backend_utils_fmgr_fmgr.c +44 -17
- data/ext/pg_query/src_backend_utils_init_globals.c +9 -6
- data/ext/pg_query/src_backend_utils_mb_mbutils.c +74 -131
- data/ext/pg_query/src_backend_utils_misc_guc_tables.c +492 -0
- data/ext/pg_query/src_backend_utils_mmgr_alignedalloc.c +163 -0
- data/ext/pg_query/src_backend_utils_mmgr_aset.c +453 -314
- data/ext/pg_query/src_backend_utils_mmgr_generation.c +1039 -0
- data/ext/pg_query/src_backend_utils_mmgr_mcxt.c +549 -76
- data/ext/pg_query/src_backend_utils_mmgr_slab.c +1021 -0
- data/ext/pg_query/src_common_encnames.c +4 -1
- data/ext/pg_query/src_common_hashfn.c +420 -0
- data/ext/pg_query/src_common_keywords.c +15 -2
- data/ext/pg_query/src_common_kwlist_d.h +545 -498
- data/ext/pg_query/src_common_kwlookup.c +1 -1
- data/ext/pg_query/src_common_psprintf.c +1 -1
- data/ext/pg_query/src_common_stringinfo.c +4 -4
- data/ext/pg_query/src_common_wchar.c +717 -113
- data/ext/pg_query/src_pl_plpgsql_src_pl_comp.c +49 -22
- data/ext/pg_query/src_pl_plpgsql_src_pl_funcs.c +3 -18
- data/ext/pg_query/src_pl_plpgsql_src_pl_gram.c +1136 -1195
- 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 +10 -10
- data/ext/pg_query/src_pl_plpgsql_src_pl_scanner.c +2 -2
- data/ext/pg_query/src_pl_plpgsql_src_pl_unreserved_kwlist_d.h +60 -60
- data/ext/pg_query/src_port_pg_bitutils.c +103 -40
- data/ext/pg_query/src_port_pgstrcasecmp.c +29 -1
- data/ext/pg_query/src_port_qsort.c +12 -224
- data/ext/pg_query/src_port_snprintf.c +51 -29
- data/ext/pg_query/src_port_strerror.c +9 -19
- data/ext/pg_query/src_port_strlcpy.c +79 -0
- data/lib/pg_query/deparse.rb +7 -1
- data/lib/pg_query/filter_columns.rb +7 -5
- data/lib/pg_query/fingerprint.rb +21 -9
- data/lib/pg_query/node.rb +18 -13
- data/lib/pg_query/param_refs.rb +1 -1
- data/lib/pg_query/parse.rb +141 -50
- data/lib/pg_query/pg_query_pb.rb +175 -3031
- data/lib/pg_query/treewalker.rb +26 -2
- data/lib/pg_query/truncate.rb +54 -8
- data/lib/pg_query/version.rb +1 -1
- data/lib/pg_query.rb +0 -1
- metadata +443 -380
- data/ext/pg_query/guc-file.c +0 -0
- data/ext/pg_query/include/access/rmgr.h +0 -35
- data/ext/pg_query/include/access/xloginsert.h +0 -64
- data/ext/pg_query/include/bootstrap/bootstrap.h +0 -62
- data/ext/pg_query/include/catalog/genbki.h +0 -64
- data/ext/pg_query/include/catalog/indexing.h +0 -366
- data/ext/pg_query/include/commands/variable.h +0 -38
- data/ext/pg_query/include/common/ip.h +0 -37
- data/ext/pg_query/include/common/string.h +0 -19
- data/ext/pg_query/include/getaddrinfo.h +0 -162
- data/ext/pg_query/include/kwlist_d.h +0 -1072
- data/ext/pg_query/include/nodes/value.h +0 -61
- data/ext/pg_query/include/parser/gram.h +0 -1067
- data/ext/pg_query/include/parser/kwlist.h +0 -477
- data/ext/pg_query/include/parser/parse_clause.h +0 -54
- data/ext/pg_query/include/parser/parse_collate.h +0 -27
- data/ext/pg_query/include/parser/parse_target.h +0 -46
- data/ext/pg_query/include/parser/parser.h +0 -41
- data/ext/pg_query/include/pg_config_os.h +0 -8
- data/ext/pg_query/include/pgstat.h +0 -1487
- data/ext/pg_query/include/portability/instr_time.h +0 -256
- data/ext/pg_query/include/postmaster/fork_process.h +0 -17
- data/ext/pg_query/include/replication/logicalproto.h +0 -110
- data/ext/pg_query/include/replication/logicalworker.h +0 -19
- data/ext/pg_query/include/replication/reorderbuffer.h +0 -467
- data/ext/pg_query/include/storage/relfilenode.h +0 -99
- data/ext/pg_query/include/utils/dynahash.h +0 -19
- data/ext/pg_query/include/utils/pg_lsn.h +0 -29
- data/ext/pg_query/include/utils/pidfile.h +0 -56
- data/ext/pg_query/include/utils/ps_status.h +0 -25
- data/ext/pg_query/include/utils/regproc.h +0 -28
- data/ext/pg_query/include/utils/rls.h +0 -50
- data/ext/pg_query/include/utils/tzparser.h +0 -39
- data/ext/pg_query/src_backend_libpq_pqcomm.c +0 -651
- data/ext/pg_query/src_backend_parser_parse_expr.c +0 -313
- data/ext/pg_query/src_backend_postmaster_postmaster.c +0 -2230
- data/ext/pg_query/src_backend_storage_lmgr_s_lock.c +0 -370
- data/ext/pg_query/src_backend_utils_hash_dynahash.c +0 -1086
- data/ext/pg_query/src_backend_utils_misc_guc.c +0 -1831
- data/ext/pg_query/src_common_string.c +0 -86
- data/ext/pg_query/src_port_erand48.c +0 -127
- data/ext/pg_query/src_port_pgsleep.c +0 -69
- data/ext/pg_query/src_port_random.c +0 -31
- data/ext/pg_query/src_port_strnlen.c +0 -39
- data/lib/pg_query/json_field_names.rb +0 -1402
- /data/ext/pg_query/include/{pg_config_ext.h → postgres/pg_config_ext.h} +0 -0
|
@@ -47,6 +47,17 @@ _enumToStringSortByNulls(SortByNulls value) {
|
|
|
47
47
|
return NULL;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
static const char*
|
|
51
|
+
_enumToStringSetQuantifier(SetQuantifier value) {
|
|
52
|
+
switch(value) {
|
|
53
|
+
case SET_QUANTIFIER_DEFAULT: return "SET_QUANTIFIER_DEFAULT";
|
|
54
|
+
case SET_QUANTIFIER_ALL: return "SET_QUANTIFIER_ALL";
|
|
55
|
+
case SET_QUANTIFIER_DISTINCT: return "SET_QUANTIFIER_DISTINCT";
|
|
56
|
+
}
|
|
57
|
+
Assert(false);
|
|
58
|
+
return NULL;
|
|
59
|
+
}
|
|
60
|
+
|
|
50
61
|
static const char*
|
|
51
62
|
_enumToStringA_Expr_Kind(A_Expr_Kind value) {
|
|
52
63
|
switch(value) {
|
|
@@ -56,7 +67,6 @@ _enumToStringA_Expr_Kind(A_Expr_Kind value) {
|
|
|
56
67
|
case AEXPR_DISTINCT: return "AEXPR_DISTINCT";
|
|
57
68
|
case AEXPR_NOT_DISTINCT: return "AEXPR_NOT_DISTINCT";
|
|
58
69
|
case AEXPR_NULLIF: return "AEXPR_NULLIF";
|
|
59
|
-
case AEXPR_OF: return "AEXPR_OF";
|
|
60
70
|
case AEXPR_IN: return "AEXPR_IN";
|
|
61
71
|
case AEXPR_LIKE: return "AEXPR_LIKE";
|
|
62
72
|
case AEXPR_ILIKE: return "AEXPR_ILIKE";
|
|
@@ -65,7 +75,6 @@ _enumToStringA_Expr_Kind(A_Expr_Kind value) {
|
|
|
65
75
|
case AEXPR_NOT_BETWEEN: return "AEXPR_NOT_BETWEEN";
|
|
66
76
|
case AEXPR_BETWEEN_SYM: return "AEXPR_BETWEEN_SYM";
|
|
67
77
|
case AEXPR_NOT_BETWEEN_SYM: return "AEXPR_NOT_BETWEEN_SYM";
|
|
68
|
-
case AEXPR_PAREN: return "AEXPR_PAREN";
|
|
69
78
|
}
|
|
70
79
|
Assert(false);
|
|
71
80
|
return NULL;
|
|
@@ -75,6 +84,7 @@ static const char*
|
|
|
75
84
|
_enumToStringRoleSpecType(RoleSpecType value) {
|
|
76
85
|
switch(value) {
|
|
77
86
|
case ROLESPEC_CSTRING: return "ROLESPEC_CSTRING";
|
|
87
|
+
case ROLESPEC_CURRENT_ROLE: return "ROLESPEC_CURRENT_ROLE";
|
|
78
88
|
case ROLESPEC_CURRENT_USER: return "ROLESPEC_CURRENT_USER";
|
|
79
89
|
case ROLESPEC_SESSION_USER: return "ROLESPEC_SESSION_USER";
|
|
80
90
|
case ROLESPEC_PUBLIC: return "ROLESPEC_PUBLIC";
|
|
@@ -87,6 +97,7 @@ static const char*
|
|
|
87
97
|
_enumToStringTableLikeOption(TableLikeOption value) {
|
|
88
98
|
switch(value) {
|
|
89
99
|
case CREATE_TABLE_LIKE_COMMENTS: return "CREATE_TABLE_LIKE_COMMENTS";
|
|
100
|
+
case CREATE_TABLE_LIKE_COMPRESSION: return "CREATE_TABLE_LIKE_COMPRESSION";
|
|
90
101
|
case CREATE_TABLE_LIKE_CONSTRAINTS: return "CREATE_TABLE_LIKE_CONSTRAINTS";
|
|
91
102
|
case CREATE_TABLE_LIKE_DEFAULTS: return "CREATE_TABLE_LIKE_DEFAULTS";
|
|
92
103
|
case CREATE_TABLE_LIKE_GENERATED: return "CREATE_TABLE_LIKE_GENERATED";
|
|
@@ -112,6 +123,17 @@ _enumToStringDefElemAction(DefElemAction value) {
|
|
|
112
123
|
return NULL;
|
|
113
124
|
}
|
|
114
125
|
|
|
126
|
+
static const char*
|
|
127
|
+
_enumToStringPartitionStrategy(PartitionStrategy value) {
|
|
128
|
+
switch(value) {
|
|
129
|
+
case PARTITION_STRATEGY_LIST: return "PARTITION_STRATEGY_LIST";
|
|
130
|
+
case PARTITION_STRATEGY_RANGE: return "PARTITION_STRATEGY_RANGE";
|
|
131
|
+
case PARTITION_STRATEGY_HASH: return "PARTITION_STRATEGY_HASH";
|
|
132
|
+
}
|
|
133
|
+
Assert(false);
|
|
134
|
+
return NULL;
|
|
135
|
+
}
|
|
136
|
+
|
|
115
137
|
static const char*
|
|
116
138
|
_enumToStringPartitionRangeDatumKind(PartitionRangeDatumKind value) {
|
|
117
139
|
switch(value) {
|
|
@@ -147,6 +169,8 @@ _enumToStringWCOKind(WCOKind value) {
|
|
|
147
169
|
case WCO_RLS_INSERT_CHECK: return "WCO_RLS_INSERT_CHECK";
|
|
148
170
|
case WCO_RLS_UPDATE_CHECK: return "WCO_RLS_UPDATE_CHECK";
|
|
149
171
|
case WCO_RLS_CONFLICT_CHECK: return "WCO_RLS_CONFLICT_CHECK";
|
|
172
|
+
case WCO_RLS_MERGE_UPDATE_CHECK: return "WCO_RLS_MERGE_UPDATE_CHECK";
|
|
173
|
+
case WCO_RLS_MERGE_DELETE_CHECK: return "WCO_RLS_MERGE_DELETE_CHECK";
|
|
150
174
|
}
|
|
151
175
|
Assert(false);
|
|
152
176
|
return NULL;
|
|
@@ -218,9 +242,11 @@ _enumToStringObjectType(ObjectType value) {
|
|
|
218
242
|
case OBJECT_OPCLASS: return "OBJECT_OPCLASS";
|
|
219
243
|
case OBJECT_OPERATOR: return "OBJECT_OPERATOR";
|
|
220
244
|
case OBJECT_OPFAMILY: return "OBJECT_OPFAMILY";
|
|
245
|
+
case OBJECT_PARAMETER_ACL: return "OBJECT_PARAMETER_ACL";
|
|
221
246
|
case OBJECT_POLICY: return "OBJECT_POLICY";
|
|
222
247
|
case OBJECT_PROCEDURE: return "OBJECT_PROCEDURE";
|
|
223
248
|
case OBJECT_PUBLICATION: return "OBJECT_PUBLICATION";
|
|
249
|
+
case OBJECT_PUBLICATION_NAMESPACE: return "OBJECT_PUBLICATION_NAMESPACE";
|
|
224
250
|
case OBJECT_PUBLICATION_REL: return "OBJECT_PUBLICATION_REL";
|
|
225
251
|
case OBJECT_ROLE: return "OBJECT_ROLE";
|
|
226
252
|
case OBJECT_ROUTINE: return "OBJECT_ROUTINE";
|
|
@@ -260,7 +286,6 @@ static const char*
|
|
|
260
286
|
_enumToStringAlterTableType(AlterTableType value) {
|
|
261
287
|
switch(value) {
|
|
262
288
|
case AT_AddColumn: return "AT_AddColumn";
|
|
263
|
-
case AT_AddColumnRecurse: return "AT_AddColumnRecurse";
|
|
264
289
|
case AT_AddColumnToView: return "AT_AddColumnToView";
|
|
265
290
|
case AT_ColumnDefault: return "AT_ColumnDefault";
|
|
266
291
|
case AT_CookedColumnDefault: return "AT_CookedColumnDefault";
|
|
@@ -272,20 +297,17 @@ _enumToStringAlterTableType(AlterTableType value) {
|
|
|
272
297
|
case AT_SetOptions: return "AT_SetOptions";
|
|
273
298
|
case AT_ResetOptions: return "AT_ResetOptions";
|
|
274
299
|
case AT_SetStorage: return "AT_SetStorage";
|
|
300
|
+
case AT_SetCompression: return "AT_SetCompression";
|
|
275
301
|
case AT_DropColumn: return "AT_DropColumn";
|
|
276
|
-
case AT_DropColumnRecurse: return "AT_DropColumnRecurse";
|
|
277
302
|
case AT_AddIndex: return "AT_AddIndex";
|
|
278
303
|
case AT_ReAddIndex: return "AT_ReAddIndex";
|
|
279
304
|
case AT_AddConstraint: return "AT_AddConstraint";
|
|
280
|
-
case AT_AddConstraintRecurse: return "AT_AddConstraintRecurse";
|
|
281
305
|
case AT_ReAddConstraint: return "AT_ReAddConstraint";
|
|
282
306
|
case AT_ReAddDomainConstraint: return "AT_ReAddDomainConstraint";
|
|
283
307
|
case AT_AlterConstraint: return "AT_AlterConstraint";
|
|
284
308
|
case AT_ValidateConstraint: return "AT_ValidateConstraint";
|
|
285
|
-
case AT_ValidateConstraintRecurse: return "AT_ValidateConstraintRecurse";
|
|
286
309
|
case AT_AddIndexConstraint: return "AT_AddIndexConstraint";
|
|
287
310
|
case AT_DropConstraint: return "AT_DropConstraint";
|
|
288
|
-
case AT_DropConstraintRecurse: return "AT_DropConstraintRecurse";
|
|
289
311
|
case AT_ReAddComment: return "AT_ReAddComment";
|
|
290
312
|
case AT_AlterColumnType: return "AT_AlterColumnType";
|
|
291
313
|
case AT_AlterColumnGenericOptions: return "AT_AlterColumnGenericOptions";
|
|
@@ -295,6 +317,7 @@ _enumToStringAlterTableType(AlterTableType value) {
|
|
|
295
317
|
case AT_SetLogged: return "AT_SetLogged";
|
|
296
318
|
case AT_SetUnLogged: return "AT_SetUnLogged";
|
|
297
319
|
case AT_DropOids: return "AT_DropOids";
|
|
320
|
+
case AT_SetAccessMethod: return "AT_SetAccessMethod";
|
|
298
321
|
case AT_SetTableSpace: return "AT_SetTableSpace";
|
|
299
322
|
case AT_SetRelOptions: return "AT_SetRelOptions";
|
|
300
323
|
case AT_ResetRelOptions: return "AT_ResetRelOptions";
|
|
@@ -323,9 +346,11 @@ _enumToStringAlterTableType(AlterTableType value) {
|
|
|
323
346
|
case AT_GenericOptions: return "AT_GenericOptions";
|
|
324
347
|
case AT_AttachPartition: return "AT_AttachPartition";
|
|
325
348
|
case AT_DetachPartition: return "AT_DetachPartition";
|
|
349
|
+
case AT_DetachPartitionFinalize: return "AT_DetachPartitionFinalize";
|
|
326
350
|
case AT_AddIdentity: return "AT_AddIdentity";
|
|
327
351
|
case AT_SetIdentity: return "AT_SetIdentity";
|
|
328
352
|
case AT_DropIdentity: return "AT_DropIdentity";
|
|
353
|
+
case AT_ReAddStatistics: return "AT_ReAddStatistics";
|
|
329
354
|
}
|
|
330
355
|
Assert(false);
|
|
331
356
|
return NULL;
|
|
@@ -420,6 +445,7 @@ _enumToStringFunctionParameterMode(FunctionParameterMode value) {
|
|
|
420
445
|
case FUNC_PARAM_INOUT: return "FUNC_PARAM_INOUT";
|
|
421
446
|
case FUNC_PARAM_VARIADIC: return "FUNC_PARAM_VARIADIC";
|
|
422
447
|
case FUNC_PARAM_TABLE: return "FUNC_PARAM_TABLE";
|
|
448
|
+
case FUNC_PARAM_DEFAULT: return "FUNC_PARAM_DEFAULT";
|
|
423
449
|
}
|
|
424
450
|
Assert(false);
|
|
425
451
|
return NULL;
|
|
@@ -454,16 +480,6 @@ _enumToStringViewCheckOption(ViewCheckOption value) {
|
|
|
454
480
|
return NULL;
|
|
455
481
|
}
|
|
456
482
|
|
|
457
|
-
static const char*
|
|
458
|
-
_enumToStringClusterOption(ClusterOption value) {
|
|
459
|
-
switch(value) {
|
|
460
|
-
case CLUOPT_RECHECK: return "CLUOPT_RECHECK";
|
|
461
|
-
case CLUOPT_VERBOSE: return "CLUOPT_VERBOSE";
|
|
462
|
-
}
|
|
463
|
-
Assert(false);
|
|
464
|
-
return NULL;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
483
|
static const char*
|
|
468
484
|
_enumToStringDiscardMode(DiscardMode value) {
|
|
469
485
|
switch(value) {
|
|
@@ -502,14 +518,40 @@ _enumToStringAlterTSConfigType(AlterTSConfigType value) {
|
|
|
502
518
|
return NULL;
|
|
503
519
|
}
|
|
504
520
|
|
|
521
|
+
static const char*
|
|
522
|
+
_enumToStringPublicationObjSpecType(PublicationObjSpecType value) {
|
|
523
|
+
switch(value) {
|
|
524
|
+
case PUBLICATIONOBJ_TABLE: return "PUBLICATIONOBJ_TABLE";
|
|
525
|
+
case PUBLICATIONOBJ_TABLES_IN_SCHEMA: return "PUBLICATIONOBJ_TABLES_IN_SCHEMA";
|
|
526
|
+
case PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: return "PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA";
|
|
527
|
+
case PUBLICATIONOBJ_CONTINUATION: return "PUBLICATIONOBJ_CONTINUATION";
|
|
528
|
+
}
|
|
529
|
+
Assert(false);
|
|
530
|
+
return NULL;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
static const char*
|
|
534
|
+
_enumToStringAlterPublicationAction(AlterPublicationAction value) {
|
|
535
|
+
switch(value) {
|
|
536
|
+
case AP_AddObjects: return "AP_AddObjects";
|
|
537
|
+
case AP_DropObjects: return "AP_DropObjects";
|
|
538
|
+
case AP_SetObjects: return "AP_SetObjects";
|
|
539
|
+
}
|
|
540
|
+
Assert(false);
|
|
541
|
+
return NULL;
|
|
542
|
+
}
|
|
543
|
+
|
|
505
544
|
static const char*
|
|
506
545
|
_enumToStringAlterSubscriptionType(AlterSubscriptionType value) {
|
|
507
546
|
switch(value) {
|
|
508
547
|
case ALTER_SUBSCRIPTION_OPTIONS: return "ALTER_SUBSCRIPTION_OPTIONS";
|
|
509
548
|
case ALTER_SUBSCRIPTION_CONNECTION: return "ALTER_SUBSCRIPTION_CONNECTION";
|
|
510
|
-
case
|
|
549
|
+
case ALTER_SUBSCRIPTION_SET_PUBLICATION: return "ALTER_SUBSCRIPTION_SET_PUBLICATION";
|
|
550
|
+
case ALTER_SUBSCRIPTION_ADD_PUBLICATION: return "ALTER_SUBSCRIPTION_ADD_PUBLICATION";
|
|
551
|
+
case ALTER_SUBSCRIPTION_DROP_PUBLICATION: return "ALTER_SUBSCRIPTION_DROP_PUBLICATION";
|
|
511
552
|
case ALTER_SUBSCRIPTION_REFRESH: return "ALTER_SUBSCRIPTION_REFRESH";
|
|
512
553
|
case ALTER_SUBSCRIPTION_ENABLED: return "ALTER_SUBSCRIPTION_ENABLED";
|
|
554
|
+
case ALTER_SUBSCRIPTION_SKIP: return "ALTER_SUBSCRIPTION_SKIP";
|
|
513
555
|
}
|
|
514
556
|
Assert(false);
|
|
515
557
|
return NULL;
|
|
@@ -544,6 +586,7 @@ _enumToStringCoercionContext(CoercionContext value) {
|
|
|
544
586
|
switch(value) {
|
|
545
587
|
case COERCION_IMPLICIT: return "COERCION_IMPLICIT";
|
|
546
588
|
case COERCION_ASSIGNMENT: return "COERCION_ASSIGNMENT";
|
|
589
|
+
case COERCION_PLPGSQL: return "COERCION_PLPGSQL";
|
|
547
590
|
case COERCION_EXPLICIT: return "COERCION_EXPLICIT";
|
|
548
591
|
}
|
|
549
592
|
Assert(false);
|
|
@@ -556,6 +599,7 @@ _enumToStringCoercionForm(CoercionForm value) {
|
|
|
556
599
|
case COERCE_EXPLICIT_CALL: return "COERCE_EXPLICIT_CALL";
|
|
557
600
|
case COERCE_EXPLICIT_CAST: return "COERCE_EXPLICIT_CAST";
|
|
558
601
|
case COERCE_IMPLICIT_CAST: return "COERCE_IMPLICIT_CAST";
|
|
602
|
+
case COERCE_SQL_SYNTAX: return "COERCE_SQL_SYNTAX";
|
|
559
603
|
}
|
|
560
604
|
Assert(false);
|
|
561
605
|
return NULL;
|
|
@@ -661,6 +705,53 @@ _enumToStringXmlOptionType(XmlOptionType value) {
|
|
|
661
705
|
return NULL;
|
|
662
706
|
}
|
|
663
707
|
|
|
708
|
+
static const char*
|
|
709
|
+
_enumToStringJsonEncoding(JsonEncoding value) {
|
|
710
|
+
switch(value) {
|
|
711
|
+
case JS_ENC_DEFAULT: return "JS_ENC_DEFAULT";
|
|
712
|
+
case JS_ENC_UTF8: return "JS_ENC_UTF8";
|
|
713
|
+
case JS_ENC_UTF16: return "JS_ENC_UTF16";
|
|
714
|
+
case JS_ENC_UTF32: return "JS_ENC_UTF32";
|
|
715
|
+
}
|
|
716
|
+
Assert(false);
|
|
717
|
+
return NULL;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
static const char*
|
|
721
|
+
_enumToStringJsonFormatType(JsonFormatType value) {
|
|
722
|
+
switch(value) {
|
|
723
|
+
case JS_FORMAT_DEFAULT: return "JS_FORMAT_DEFAULT";
|
|
724
|
+
case JS_FORMAT_JSON: return "JS_FORMAT_JSON";
|
|
725
|
+
case JS_FORMAT_JSONB: return "JS_FORMAT_JSONB";
|
|
726
|
+
}
|
|
727
|
+
Assert(false);
|
|
728
|
+
return NULL;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
static const char*
|
|
732
|
+
_enumToStringJsonConstructorType(JsonConstructorType value) {
|
|
733
|
+
switch(value) {
|
|
734
|
+
case JSCTOR_JSON_OBJECT: return "JSCTOR_JSON_OBJECT";
|
|
735
|
+
case JSCTOR_JSON_ARRAY: return "JSCTOR_JSON_ARRAY";
|
|
736
|
+
case JSCTOR_JSON_OBJECTAGG: return "JSCTOR_JSON_OBJECTAGG";
|
|
737
|
+
case JSCTOR_JSON_ARRAYAGG: return "JSCTOR_JSON_ARRAYAGG";
|
|
738
|
+
}
|
|
739
|
+
Assert(false);
|
|
740
|
+
return NULL;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
static const char*
|
|
744
|
+
_enumToStringJsonValueType(JsonValueType value) {
|
|
745
|
+
switch(value) {
|
|
746
|
+
case JS_TYPE_ANY: return "JS_TYPE_ANY";
|
|
747
|
+
case JS_TYPE_OBJECT: return "JS_TYPE_OBJECT";
|
|
748
|
+
case JS_TYPE_ARRAY: return "JS_TYPE_ARRAY";
|
|
749
|
+
case JS_TYPE_SCALAR: return "JS_TYPE_SCALAR";
|
|
750
|
+
}
|
|
751
|
+
Assert(false);
|
|
752
|
+
return NULL;
|
|
753
|
+
}
|
|
754
|
+
|
|
664
755
|
static const char*
|
|
665
756
|
_enumToStringNullTestType(NullTestType value) {
|
|
666
757
|
switch(value) {
|
|
@@ -693,6 +784,7 @@ _enumToStringCmdType(CmdType value) {
|
|
|
693
784
|
case CMD_UPDATE: return "CMD_UPDATE";
|
|
694
785
|
case CMD_INSERT: return "CMD_INSERT";
|
|
695
786
|
case CMD_DELETE: return "CMD_DELETE";
|
|
787
|
+
case CMD_MERGE: return "CMD_MERGE";
|
|
696
788
|
case CMD_UTILITY: return "CMD_UTILITY";
|
|
697
789
|
case CMD_NOTHING: return "CMD_NOTHING";
|
|
698
790
|
}
|
|
@@ -709,6 +801,7 @@ _enumToStringJoinType(JoinType value) {
|
|
|
709
801
|
case JOIN_RIGHT: return "JOIN_RIGHT";
|
|
710
802
|
case JOIN_SEMI: return "JOIN_SEMI";
|
|
711
803
|
case JOIN_ANTI: return "JOIN_ANTI";
|
|
804
|
+
case JOIN_RIGHT_ANTI: return "JOIN_RIGHT_ANTI";
|
|
712
805
|
case JOIN_UNIQUE_OUTER: return "JOIN_UNIQUE_OUTER";
|
|
713
806
|
case JOIN_UNIQUE_INNER: return "JOIN_UNIQUE_INNER";
|
|
714
807
|
}
|
|
@@ -864,6 +957,17 @@ _enumToIntSortByNulls(SortByNulls value) {
|
|
|
864
957
|
return -1;
|
|
865
958
|
}
|
|
866
959
|
|
|
960
|
+
static int
|
|
961
|
+
_enumToIntSetQuantifier(SetQuantifier value) {
|
|
962
|
+
switch(value) {
|
|
963
|
+
case SET_QUANTIFIER_DEFAULT: return 1;
|
|
964
|
+
case SET_QUANTIFIER_ALL: return 2;
|
|
965
|
+
case SET_QUANTIFIER_DISTINCT: return 3;
|
|
966
|
+
}
|
|
967
|
+
Assert(false);
|
|
968
|
+
return -1;
|
|
969
|
+
}
|
|
970
|
+
|
|
867
971
|
static int
|
|
868
972
|
_enumToIntA_Expr_Kind(A_Expr_Kind value) {
|
|
869
973
|
switch(value) {
|
|
@@ -873,16 +977,14 @@ _enumToIntA_Expr_Kind(A_Expr_Kind value) {
|
|
|
873
977
|
case AEXPR_DISTINCT: return 4;
|
|
874
978
|
case AEXPR_NOT_DISTINCT: return 5;
|
|
875
979
|
case AEXPR_NULLIF: return 6;
|
|
876
|
-
case
|
|
877
|
-
case
|
|
878
|
-
case
|
|
879
|
-
case
|
|
880
|
-
case
|
|
881
|
-
case
|
|
882
|
-
case
|
|
883
|
-
case
|
|
884
|
-
case AEXPR_NOT_BETWEEN_SYM: return 15;
|
|
885
|
-
case AEXPR_PAREN: return 16;
|
|
980
|
+
case AEXPR_IN: return 7;
|
|
981
|
+
case AEXPR_LIKE: return 8;
|
|
982
|
+
case AEXPR_ILIKE: return 9;
|
|
983
|
+
case AEXPR_SIMILAR: return 10;
|
|
984
|
+
case AEXPR_BETWEEN: return 11;
|
|
985
|
+
case AEXPR_NOT_BETWEEN: return 12;
|
|
986
|
+
case AEXPR_BETWEEN_SYM: return 13;
|
|
987
|
+
case AEXPR_NOT_BETWEEN_SYM: return 14;
|
|
886
988
|
}
|
|
887
989
|
Assert(false);
|
|
888
990
|
return -1;
|
|
@@ -892,9 +994,10 @@ static int
|
|
|
892
994
|
_enumToIntRoleSpecType(RoleSpecType value) {
|
|
893
995
|
switch(value) {
|
|
894
996
|
case ROLESPEC_CSTRING: return 1;
|
|
895
|
-
case
|
|
896
|
-
case
|
|
897
|
-
case
|
|
997
|
+
case ROLESPEC_CURRENT_ROLE: return 2;
|
|
998
|
+
case ROLESPEC_CURRENT_USER: return 3;
|
|
999
|
+
case ROLESPEC_SESSION_USER: return 4;
|
|
1000
|
+
case ROLESPEC_PUBLIC: return 5;
|
|
898
1001
|
}
|
|
899
1002
|
Assert(false);
|
|
900
1003
|
return -1;
|
|
@@ -904,14 +1007,15 @@ static int
|
|
|
904
1007
|
_enumToIntTableLikeOption(TableLikeOption value) {
|
|
905
1008
|
switch(value) {
|
|
906
1009
|
case CREATE_TABLE_LIKE_COMMENTS: return 1;
|
|
907
|
-
case
|
|
908
|
-
case
|
|
909
|
-
case
|
|
910
|
-
case
|
|
911
|
-
case
|
|
912
|
-
case
|
|
913
|
-
case
|
|
914
|
-
case
|
|
1010
|
+
case CREATE_TABLE_LIKE_COMPRESSION: return 2;
|
|
1011
|
+
case CREATE_TABLE_LIKE_CONSTRAINTS: return 3;
|
|
1012
|
+
case CREATE_TABLE_LIKE_DEFAULTS: return 4;
|
|
1013
|
+
case CREATE_TABLE_LIKE_GENERATED: return 5;
|
|
1014
|
+
case CREATE_TABLE_LIKE_IDENTITY: return 6;
|
|
1015
|
+
case CREATE_TABLE_LIKE_INDEXES: return 7;
|
|
1016
|
+
case CREATE_TABLE_LIKE_STATISTICS: return 8;
|
|
1017
|
+
case CREATE_TABLE_LIKE_STORAGE: return 9;
|
|
1018
|
+
case CREATE_TABLE_LIKE_ALL: return 10;
|
|
915
1019
|
}
|
|
916
1020
|
Assert(false);
|
|
917
1021
|
return -1;
|
|
@@ -929,6 +1033,17 @@ _enumToIntDefElemAction(DefElemAction value) {
|
|
|
929
1033
|
return -1;
|
|
930
1034
|
}
|
|
931
1035
|
|
|
1036
|
+
static int
|
|
1037
|
+
_enumToIntPartitionStrategy(PartitionStrategy value) {
|
|
1038
|
+
switch(value) {
|
|
1039
|
+
case PARTITION_STRATEGY_LIST: return 1;
|
|
1040
|
+
case PARTITION_STRATEGY_RANGE: return 2;
|
|
1041
|
+
case PARTITION_STRATEGY_HASH: return 3;
|
|
1042
|
+
}
|
|
1043
|
+
Assert(false);
|
|
1044
|
+
return -1;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
932
1047
|
static int
|
|
933
1048
|
_enumToIntPartitionRangeDatumKind(PartitionRangeDatumKind value) {
|
|
934
1049
|
switch(value) {
|
|
@@ -964,6 +1079,8 @@ _enumToIntWCOKind(WCOKind value) {
|
|
|
964
1079
|
case WCO_RLS_INSERT_CHECK: return 2;
|
|
965
1080
|
case WCO_RLS_UPDATE_CHECK: return 3;
|
|
966
1081
|
case WCO_RLS_CONFLICT_CHECK: return 4;
|
|
1082
|
+
case WCO_RLS_MERGE_UPDATE_CHECK: return 5;
|
|
1083
|
+
case WCO_RLS_MERGE_DELETE_CHECK: return 6;
|
|
967
1084
|
}
|
|
968
1085
|
Assert(false);
|
|
969
1086
|
return -1;
|
|
@@ -1035,29 +1152,31 @@ _enumToIntObjectType(ObjectType value) {
|
|
|
1035
1152
|
case OBJECT_OPCLASS: return 25;
|
|
1036
1153
|
case OBJECT_OPERATOR: return 26;
|
|
1037
1154
|
case OBJECT_OPFAMILY: return 27;
|
|
1038
|
-
case
|
|
1039
|
-
case
|
|
1040
|
-
case
|
|
1041
|
-
case
|
|
1042
|
-
case
|
|
1043
|
-
case
|
|
1044
|
-
case
|
|
1045
|
-
case
|
|
1046
|
-
case
|
|
1047
|
-
case
|
|
1048
|
-
case
|
|
1049
|
-
case
|
|
1050
|
-
case
|
|
1051
|
-
case
|
|
1052
|
-
case
|
|
1053
|
-
case
|
|
1054
|
-
case
|
|
1055
|
-
case
|
|
1056
|
-
case
|
|
1057
|
-
case
|
|
1058
|
-
case
|
|
1059
|
-
case
|
|
1060
|
-
case
|
|
1155
|
+
case OBJECT_PARAMETER_ACL: return 28;
|
|
1156
|
+
case OBJECT_POLICY: return 29;
|
|
1157
|
+
case OBJECT_PROCEDURE: return 30;
|
|
1158
|
+
case OBJECT_PUBLICATION: return 31;
|
|
1159
|
+
case OBJECT_PUBLICATION_NAMESPACE: return 32;
|
|
1160
|
+
case OBJECT_PUBLICATION_REL: return 33;
|
|
1161
|
+
case OBJECT_ROLE: return 34;
|
|
1162
|
+
case OBJECT_ROUTINE: return 35;
|
|
1163
|
+
case OBJECT_RULE: return 36;
|
|
1164
|
+
case OBJECT_SCHEMA: return 37;
|
|
1165
|
+
case OBJECT_SEQUENCE: return 38;
|
|
1166
|
+
case OBJECT_SUBSCRIPTION: return 39;
|
|
1167
|
+
case OBJECT_STATISTIC_EXT: return 40;
|
|
1168
|
+
case OBJECT_TABCONSTRAINT: return 41;
|
|
1169
|
+
case OBJECT_TABLE: return 42;
|
|
1170
|
+
case OBJECT_TABLESPACE: return 43;
|
|
1171
|
+
case OBJECT_TRANSFORM: return 44;
|
|
1172
|
+
case OBJECT_TRIGGER: return 45;
|
|
1173
|
+
case OBJECT_TSCONFIGURATION: return 46;
|
|
1174
|
+
case OBJECT_TSDICTIONARY: return 47;
|
|
1175
|
+
case OBJECT_TSPARSER: return 48;
|
|
1176
|
+
case OBJECT_TSTEMPLATE: return 49;
|
|
1177
|
+
case OBJECT_TYPE: return 50;
|
|
1178
|
+
case OBJECT_USER_MAPPING: return 51;
|
|
1179
|
+
case OBJECT_VIEW: return 52;
|
|
1061
1180
|
}
|
|
1062
1181
|
Assert(false);
|
|
1063
1182
|
return -1;
|
|
@@ -1077,72 +1196,71 @@ static int
|
|
|
1077
1196
|
_enumToIntAlterTableType(AlterTableType value) {
|
|
1078
1197
|
switch(value) {
|
|
1079
1198
|
case AT_AddColumn: return 1;
|
|
1080
|
-
case
|
|
1081
|
-
case
|
|
1082
|
-
case
|
|
1083
|
-
case
|
|
1084
|
-
case
|
|
1085
|
-
case
|
|
1086
|
-
case
|
|
1087
|
-
case
|
|
1088
|
-
case
|
|
1089
|
-
case
|
|
1090
|
-
case
|
|
1091
|
-
case
|
|
1199
|
+
case AT_AddColumnToView: return 2;
|
|
1200
|
+
case AT_ColumnDefault: return 3;
|
|
1201
|
+
case AT_CookedColumnDefault: return 4;
|
|
1202
|
+
case AT_DropNotNull: return 5;
|
|
1203
|
+
case AT_SetNotNull: return 6;
|
|
1204
|
+
case AT_DropExpression: return 7;
|
|
1205
|
+
case AT_CheckNotNull: return 8;
|
|
1206
|
+
case AT_SetStatistics: return 9;
|
|
1207
|
+
case AT_SetOptions: return 10;
|
|
1208
|
+
case AT_ResetOptions: return 11;
|
|
1209
|
+
case AT_SetStorage: return 12;
|
|
1210
|
+
case AT_SetCompression: return 13;
|
|
1092
1211
|
case AT_DropColumn: return 14;
|
|
1093
|
-
case
|
|
1094
|
-
case
|
|
1095
|
-
case
|
|
1096
|
-
case
|
|
1097
|
-
case
|
|
1098
|
-
case
|
|
1099
|
-
case
|
|
1100
|
-
case
|
|
1101
|
-
case
|
|
1102
|
-
case
|
|
1103
|
-
case
|
|
1104
|
-
case
|
|
1105
|
-
case
|
|
1106
|
-
case
|
|
1107
|
-
case
|
|
1108
|
-
case
|
|
1109
|
-
case
|
|
1110
|
-
case
|
|
1111
|
-
case
|
|
1112
|
-
case
|
|
1113
|
-
case
|
|
1114
|
-
case
|
|
1115
|
-
case
|
|
1116
|
-
case
|
|
1117
|
-
case
|
|
1118
|
-
case
|
|
1119
|
-
case
|
|
1120
|
-
case
|
|
1121
|
-
case
|
|
1122
|
-
case
|
|
1123
|
-
case
|
|
1124
|
-
case
|
|
1125
|
-
case
|
|
1126
|
-
case
|
|
1127
|
-
case
|
|
1128
|
-
case
|
|
1129
|
-
case
|
|
1130
|
-
case
|
|
1131
|
-
case
|
|
1132
|
-
case
|
|
1133
|
-
case
|
|
1134
|
-
case
|
|
1135
|
-
case
|
|
1136
|
-
case
|
|
1137
|
-
case
|
|
1138
|
-
case
|
|
1139
|
-
case
|
|
1140
|
-
case
|
|
1141
|
-
case
|
|
1142
|
-
case
|
|
1143
|
-
case
|
|
1144
|
-
case
|
|
1145
|
-
case AT_DropIdentity: return 67;
|
|
1212
|
+
case AT_AddIndex: return 15;
|
|
1213
|
+
case AT_ReAddIndex: return 16;
|
|
1214
|
+
case AT_AddConstraint: return 17;
|
|
1215
|
+
case AT_ReAddConstraint: return 18;
|
|
1216
|
+
case AT_ReAddDomainConstraint: return 19;
|
|
1217
|
+
case AT_AlterConstraint: return 20;
|
|
1218
|
+
case AT_ValidateConstraint: return 21;
|
|
1219
|
+
case AT_AddIndexConstraint: return 22;
|
|
1220
|
+
case AT_DropConstraint: return 23;
|
|
1221
|
+
case AT_ReAddComment: return 24;
|
|
1222
|
+
case AT_AlterColumnType: return 25;
|
|
1223
|
+
case AT_AlterColumnGenericOptions: return 26;
|
|
1224
|
+
case AT_ChangeOwner: return 27;
|
|
1225
|
+
case AT_ClusterOn: return 28;
|
|
1226
|
+
case AT_DropCluster: return 29;
|
|
1227
|
+
case AT_SetLogged: return 30;
|
|
1228
|
+
case AT_SetUnLogged: return 31;
|
|
1229
|
+
case AT_DropOids: return 32;
|
|
1230
|
+
case AT_SetAccessMethod: return 33;
|
|
1231
|
+
case AT_SetTableSpace: return 34;
|
|
1232
|
+
case AT_SetRelOptions: return 35;
|
|
1233
|
+
case AT_ResetRelOptions: return 36;
|
|
1234
|
+
case AT_ReplaceRelOptions: return 37;
|
|
1235
|
+
case AT_EnableTrig: return 38;
|
|
1236
|
+
case AT_EnableAlwaysTrig: return 39;
|
|
1237
|
+
case AT_EnableReplicaTrig: return 40;
|
|
1238
|
+
case AT_DisableTrig: return 41;
|
|
1239
|
+
case AT_EnableTrigAll: return 42;
|
|
1240
|
+
case AT_DisableTrigAll: return 43;
|
|
1241
|
+
case AT_EnableTrigUser: return 44;
|
|
1242
|
+
case AT_DisableTrigUser: return 45;
|
|
1243
|
+
case AT_EnableRule: return 46;
|
|
1244
|
+
case AT_EnableAlwaysRule: return 47;
|
|
1245
|
+
case AT_EnableReplicaRule: return 48;
|
|
1246
|
+
case AT_DisableRule: return 49;
|
|
1247
|
+
case AT_AddInherit: return 50;
|
|
1248
|
+
case AT_DropInherit: return 51;
|
|
1249
|
+
case AT_AddOf: return 52;
|
|
1250
|
+
case AT_DropOf: return 53;
|
|
1251
|
+
case AT_ReplicaIdentity: return 54;
|
|
1252
|
+
case AT_EnableRowSecurity: return 55;
|
|
1253
|
+
case AT_DisableRowSecurity: return 56;
|
|
1254
|
+
case AT_ForceRowSecurity: return 57;
|
|
1255
|
+
case AT_NoForceRowSecurity: return 58;
|
|
1256
|
+
case AT_GenericOptions: return 59;
|
|
1257
|
+
case AT_AttachPartition: return 60;
|
|
1258
|
+
case AT_DetachPartition: return 61;
|
|
1259
|
+
case AT_DetachPartitionFinalize: return 62;
|
|
1260
|
+
case AT_AddIdentity: return 63;
|
|
1261
|
+
case AT_SetIdentity: return 64;
|
|
1262
|
+
case AT_DropIdentity: return 65;
|
|
1263
|
+
case AT_ReAddStatistics: return 66;
|
|
1146
1264
|
}
|
|
1147
1265
|
Assert(false);
|
|
1148
1266
|
return -1;
|
|
@@ -1237,6 +1355,7 @@ _enumToIntFunctionParameterMode(FunctionParameterMode value) {
|
|
|
1237
1355
|
case FUNC_PARAM_INOUT: return 3;
|
|
1238
1356
|
case FUNC_PARAM_VARIADIC: return 4;
|
|
1239
1357
|
case FUNC_PARAM_TABLE: return 5;
|
|
1358
|
+
case FUNC_PARAM_DEFAULT: return 6;
|
|
1240
1359
|
}
|
|
1241
1360
|
Assert(false);
|
|
1242
1361
|
return -1;
|
|
@@ -1271,16 +1390,6 @@ _enumToIntViewCheckOption(ViewCheckOption value) {
|
|
|
1271
1390
|
return -1;
|
|
1272
1391
|
}
|
|
1273
1392
|
|
|
1274
|
-
static int
|
|
1275
|
-
_enumToIntClusterOption(ClusterOption value) {
|
|
1276
|
-
switch(value) {
|
|
1277
|
-
case CLUOPT_RECHECK: return 1;
|
|
1278
|
-
case CLUOPT_VERBOSE: return 2;
|
|
1279
|
-
}
|
|
1280
|
-
Assert(false);
|
|
1281
|
-
return -1;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
1393
|
static int
|
|
1285
1394
|
_enumToIntDiscardMode(DiscardMode value) {
|
|
1286
1395
|
switch(value) {
|
|
@@ -1319,14 +1428,40 @@ _enumToIntAlterTSConfigType(AlterTSConfigType value) {
|
|
|
1319
1428
|
return -1;
|
|
1320
1429
|
}
|
|
1321
1430
|
|
|
1431
|
+
static int
|
|
1432
|
+
_enumToIntPublicationObjSpecType(PublicationObjSpecType value) {
|
|
1433
|
+
switch(value) {
|
|
1434
|
+
case PUBLICATIONOBJ_TABLE: return 1;
|
|
1435
|
+
case PUBLICATIONOBJ_TABLES_IN_SCHEMA: return 2;
|
|
1436
|
+
case PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA: return 3;
|
|
1437
|
+
case PUBLICATIONOBJ_CONTINUATION: return 4;
|
|
1438
|
+
}
|
|
1439
|
+
Assert(false);
|
|
1440
|
+
return -1;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
static int
|
|
1444
|
+
_enumToIntAlterPublicationAction(AlterPublicationAction value) {
|
|
1445
|
+
switch(value) {
|
|
1446
|
+
case AP_AddObjects: return 1;
|
|
1447
|
+
case AP_DropObjects: return 2;
|
|
1448
|
+
case AP_SetObjects: return 3;
|
|
1449
|
+
}
|
|
1450
|
+
Assert(false);
|
|
1451
|
+
return -1;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1322
1454
|
static int
|
|
1323
1455
|
_enumToIntAlterSubscriptionType(AlterSubscriptionType value) {
|
|
1324
1456
|
switch(value) {
|
|
1325
1457
|
case ALTER_SUBSCRIPTION_OPTIONS: return 1;
|
|
1326
1458
|
case ALTER_SUBSCRIPTION_CONNECTION: return 2;
|
|
1327
|
-
case
|
|
1328
|
-
case
|
|
1329
|
-
case
|
|
1459
|
+
case ALTER_SUBSCRIPTION_SET_PUBLICATION: return 3;
|
|
1460
|
+
case ALTER_SUBSCRIPTION_ADD_PUBLICATION: return 4;
|
|
1461
|
+
case ALTER_SUBSCRIPTION_DROP_PUBLICATION: return 5;
|
|
1462
|
+
case ALTER_SUBSCRIPTION_REFRESH: return 6;
|
|
1463
|
+
case ALTER_SUBSCRIPTION_ENABLED: return 7;
|
|
1464
|
+
case ALTER_SUBSCRIPTION_SKIP: return 8;
|
|
1330
1465
|
}
|
|
1331
1466
|
Assert(false);
|
|
1332
1467
|
return -1;
|
|
@@ -1361,7 +1496,8 @@ _enumToIntCoercionContext(CoercionContext value) {
|
|
|
1361
1496
|
switch(value) {
|
|
1362
1497
|
case COERCION_IMPLICIT: return 1;
|
|
1363
1498
|
case COERCION_ASSIGNMENT: return 2;
|
|
1364
|
-
case
|
|
1499
|
+
case COERCION_PLPGSQL: return 3;
|
|
1500
|
+
case COERCION_EXPLICIT: return 4;
|
|
1365
1501
|
}
|
|
1366
1502
|
Assert(false);
|
|
1367
1503
|
return -1;
|
|
@@ -1373,6 +1509,7 @@ _enumToIntCoercionForm(CoercionForm value) {
|
|
|
1373
1509
|
case COERCE_EXPLICIT_CALL: return 1;
|
|
1374
1510
|
case COERCE_EXPLICIT_CAST: return 2;
|
|
1375
1511
|
case COERCE_IMPLICIT_CAST: return 3;
|
|
1512
|
+
case COERCE_SQL_SYNTAX: return 4;
|
|
1376
1513
|
}
|
|
1377
1514
|
Assert(false);
|
|
1378
1515
|
return -1;
|
|
@@ -1478,6 +1615,53 @@ _enumToIntXmlOptionType(XmlOptionType value) {
|
|
|
1478
1615
|
return -1;
|
|
1479
1616
|
}
|
|
1480
1617
|
|
|
1618
|
+
static int
|
|
1619
|
+
_enumToIntJsonEncoding(JsonEncoding value) {
|
|
1620
|
+
switch(value) {
|
|
1621
|
+
case JS_ENC_DEFAULT: return 1;
|
|
1622
|
+
case JS_ENC_UTF8: return 2;
|
|
1623
|
+
case JS_ENC_UTF16: return 3;
|
|
1624
|
+
case JS_ENC_UTF32: return 4;
|
|
1625
|
+
}
|
|
1626
|
+
Assert(false);
|
|
1627
|
+
return -1;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
static int
|
|
1631
|
+
_enumToIntJsonFormatType(JsonFormatType value) {
|
|
1632
|
+
switch(value) {
|
|
1633
|
+
case JS_FORMAT_DEFAULT: return 1;
|
|
1634
|
+
case JS_FORMAT_JSON: return 2;
|
|
1635
|
+
case JS_FORMAT_JSONB: return 3;
|
|
1636
|
+
}
|
|
1637
|
+
Assert(false);
|
|
1638
|
+
return -1;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
static int
|
|
1642
|
+
_enumToIntJsonConstructorType(JsonConstructorType value) {
|
|
1643
|
+
switch(value) {
|
|
1644
|
+
case JSCTOR_JSON_OBJECT: return 1;
|
|
1645
|
+
case JSCTOR_JSON_ARRAY: return 2;
|
|
1646
|
+
case JSCTOR_JSON_OBJECTAGG: return 3;
|
|
1647
|
+
case JSCTOR_JSON_ARRAYAGG: return 4;
|
|
1648
|
+
}
|
|
1649
|
+
Assert(false);
|
|
1650
|
+
return -1;
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
static int
|
|
1654
|
+
_enumToIntJsonValueType(JsonValueType value) {
|
|
1655
|
+
switch(value) {
|
|
1656
|
+
case JS_TYPE_ANY: return 1;
|
|
1657
|
+
case JS_TYPE_OBJECT: return 2;
|
|
1658
|
+
case JS_TYPE_ARRAY: return 3;
|
|
1659
|
+
case JS_TYPE_SCALAR: return 4;
|
|
1660
|
+
}
|
|
1661
|
+
Assert(false);
|
|
1662
|
+
return -1;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1481
1665
|
static int
|
|
1482
1666
|
_enumToIntNullTestType(NullTestType value) {
|
|
1483
1667
|
switch(value) {
|
|
@@ -1510,8 +1694,9 @@ _enumToIntCmdType(CmdType value) {
|
|
|
1510
1694
|
case CMD_UPDATE: return 3;
|
|
1511
1695
|
case CMD_INSERT: return 4;
|
|
1512
1696
|
case CMD_DELETE: return 5;
|
|
1513
|
-
case
|
|
1514
|
-
case
|
|
1697
|
+
case CMD_MERGE: return 6;
|
|
1698
|
+
case CMD_UTILITY: return 7;
|
|
1699
|
+
case CMD_NOTHING: return 8;
|
|
1515
1700
|
}
|
|
1516
1701
|
Assert(false);
|
|
1517
1702
|
return -1;
|
|
@@ -1526,8 +1711,9 @@ _enumToIntJoinType(JoinType value) {
|
|
|
1526
1711
|
case JOIN_RIGHT: return 4;
|
|
1527
1712
|
case JOIN_SEMI: return 5;
|
|
1528
1713
|
case JOIN_ANTI: return 6;
|
|
1529
|
-
case
|
|
1530
|
-
case
|
|
1714
|
+
case JOIN_RIGHT_ANTI: return 7;
|
|
1715
|
+
case JOIN_UNIQUE_OUTER: return 8;
|
|
1716
|
+
case JOIN_UNIQUE_INNER: return 9;
|
|
1531
1717
|
}
|
|
1532
1718
|
Assert(false);
|
|
1533
1719
|
return -1;
|
|
@@ -1681,6 +1867,17 @@ _intToEnumSortByNulls(int value) {
|
|
|
1681
1867
|
return SORTBY_NULLS_DEFAULT;
|
|
1682
1868
|
}
|
|
1683
1869
|
|
|
1870
|
+
static SetQuantifier
|
|
1871
|
+
_intToEnumSetQuantifier(int value) {
|
|
1872
|
+
switch(value) {
|
|
1873
|
+
case 1: return SET_QUANTIFIER_DEFAULT;
|
|
1874
|
+
case 2: return SET_QUANTIFIER_ALL;
|
|
1875
|
+
case 3: return SET_QUANTIFIER_DISTINCT;
|
|
1876
|
+
}
|
|
1877
|
+
Assert(false);
|
|
1878
|
+
return SET_QUANTIFIER_DEFAULT;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1684
1881
|
static A_Expr_Kind
|
|
1685
1882
|
_intToEnumA_Expr_Kind(int value) {
|
|
1686
1883
|
switch(value) {
|
|
@@ -1690,16 +1887,14 @@ _intToEnumA_Expr_Kind(int value) {
|
|
|
1690
1887
|
case 4: return AEXPR_DISTINCT;
|
|
1691
1888
|
case 5: return AEXPR_NOT_DISTINCT;
|
|
1692
1889
|
case 6: return AEXPR_NULLIF;
|
|
1693
|
-
case 7: return
|
|
1694
|
-
case 8: return
|
|
1695
|
-
case 9: return
|
|
1696
|
-
case 10: return
|
|
1697
|
-
case 11: return
|
|
1698
|
-
case 12: return
|
|
1699
|
-
case 13: return
|
|
1700
|
-
case 14: return
|
|
1701
|
-
case 15: return AEXPR_NOT_BETWEEN_SYM;
|
|
1702
|
-
case 16: return AEXPR_PAREN;
|
|
1890
|
+
case 7: return AEXPR_IN;
|
|
1891
|
+
case 8: return AEXPR_LIKE;
|
|
1892
|
+
case 9: return AEXPR_ILIKE;
|
|
1893
|
+
case 10: return AEXPR_SIMILAR;
|
|
1894
|
+
case 11: return AEXPR_BETWEEN;
|
|
1895
|
+
case 12: return AEXPR_NOT_BETWEEN;
|
|
1896
|
+
case 13: return AEXPR_BETWEEN_SYM;
|
|
1897
|
+
case 14: return AEXPR_NOT_BETWEEN_SYM;
|
|
1703
1898
|
}
|
|
1704
1899
|
Assert(false);
|
|
1705
1900
|
return AEXPR_OP;
|
|
@@ -1709,9 +1904,10 @@ static RoleSpecType
|
|
|
1709
1904
|
_intToEnumRoleSpecType(int value) {
|
|
1710
1905
|
switch(value) {
|
|
1711
1906
|
case 1: return ROLESPEC_CSTRING;
|
|
1712
|
-
case 2: return
|
|
1713
|
-
case 3: return
|
|
1714
|
-
case 4: return
|
|
1907
|
+
case 2: return ROLESPEC_CURRENT_ROLE;
|
|
1908
|
+
case 3: return ROLESPEC_CURRENT_USER;
|
|
1909
|
+
case 4: return ROLESPEC_SESSION_USER;
|
|
1910
|
+
case 5: return ROLESPEC_PUBLIC;
|
|
1715
1911
|
}
|
|
1716
1912
|
Assert(false);
|
|
1717
1913
|
return ROLESPEC_CSTRING;
|
|
@@ -1721,14 +1917,15 @@ static TableLikeOption
|
|
|
1721
1917
|
_intToEnumTableLikeOption(int value) {
|
|
1722
1918
|
switch(value) {
|
|
1723
1919
|
case 1: return CREATE_TABLE_LIKE_COMMENTS;
|
|
1724
|
-
case 2: return
|
|
1725
|
-
case 3: return
|
|
1726
|
-
case 4: return
|
|
1727
|
-
case 5: return
|
|
1728
|
-
case 6: return
|
|
1729
|
-
case 7: return
|
|
1730
|
-
case 8: return
|
|
1731
|
-
case 9: return
|
|
1920
|
+
case 2: return CREATE_TABLE_LIKE_COMPRESSION;
|
|
1921
|
+
case 3: return CREATE_TABLE_LIKE_CONSTRAINTS;
|
|
1922
|
+
case 4: return CREATE_TABLE_LIKE_DEFAULTS;
|
|
1923
|
+
case 5: return CREATE_TABLE_LIKE_GENERATED;
|
|
1924
|
+
case 6: return CREATE_TABLE_LIKE_IDENTITY;
|
|
1925
|
+
case 7: return CREATE_TABLE_LIKE_INDEXES;
|
|
1926
|
+
case 8: return CREATE_TABLE_LIKE_STATISTICS;
|
|
1927
|
+
case 9: return CREATE_TABLE_LIKE_STORAGE;
|
|
1928
|
+
case 10: return CREATE_TABLE_LIKE_ALL;
|
|
1732
1929
|
}
|
|
1733
1930
|
Assert(false);
|
|
1734
1931
|
return CREATE_TABLE_LIKE_COMMENTS;
|
|
@@ -1746,6 +1943,17 @@ _intToEnumDefElemAction(int value) {
|
|
|
1746
1943
|
return DEFELEM_UNSPEC;
|
|
1747
1944
|
}
|
|
1748
1945
|
|
|
1946
|
+
static PartitionStrategy
|
|
1947
|
+
_intToEnumPartitionStrategy(int value) {
|
|
1948
|
+
switch(value) {
|
|
1949
|
+
case 1: return PARTITION_STRATEGY_LIST;
|
|
1950
|
+
case 2: return PARTITION_STRATEGY_RANGE;
|
|
1951
|
+
case 3: return PARTITION_STRATEGY_HASH;
|
|
1952
|
+
}
|
|
1953
|
+
Assert(false);
|
|
1954
|
+
return PARTITION_STRATEGY_LIST;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1749
1957
|
static PartitionRangeDatumKind
|
|
1750
1958
|
_intToEnumPartitionRangeDatumKind(int value) {
|
|
1751
1959
|
switch(value) {
|
|
@@ -1781,6 +1989,8 @@ _intToEnumWCOKind(int value) {
|
|
|
1781
1989
|
case 2: return WCO_RLS_INSERT_CHECK;
|
|
1782
1990
|
case 3: return WCO_RLS_UPDATE_CHECK;
|
|
1783
1991
|
case 4: return WCO_RLS_CONFLICT_CHECK;
|
|
1992
|
+
case 5: return WCO_RLS_MERGE_UPDATE_CHECK;
|
|
1993
|
+
case 6: return WCO_RLS_MERGE_DELETE_CHECK;
|
|
1784
1994
|
}
|
|
1785
1995
|
Assert(false);
|
|
1786
1996
|
return WCO_VIEW_CHECK;
|
|
@@ -1852,29 +2062,31 @@ _intToEnumObjectType(int value) {
|
|
|
1852
2062
|
case 25: return OBJECT_OPCLASS;
|
|
1853
2063
|
case 26: return OBJECT_OPERATOR;
|
|
1854
2064
|
case 27: return OBJECT_OPFAMILY;
|
|
1855
|
-
case 28: return
|
|
1856
|
-
case 29: return
|
|
1857
|
-
case 30: return
|
|
1858
|
-
case 31: return
|
|
1859
|
-
case 32: return
|
|
1860
|
-
case 33: return
|
|
1861
|
-
case 34: return
|
|
1862
|
-
case 35: return
|
|
1863
|
-
case 36: return
|
|
1864
|
-
case 37: return
|
|
1865
|
-
case 38: return
|
|
1866
|
-
case 39: return
|
|
1867
|
-
case 40: return
|
|
1868
|
-
case 41: return
|
|
1869
|
-
case 42: return
|
|
1870
|
-
case 43: return
|
|
1871
|
-
case 44: return
|
|
1872
|
-
case 45: return
|
|
1873
|
-
case 46: return
|
|
1874
|
-
case 47: return
|
|
1875
|
-
case 48: return
|
|
1876
|
-
case 49: return
|
|
1877
|
-
case 50: return
|
|
2065
|
+
case 28: return OBJECT_PARAMETER_ACL;
|
|
2066
|
+
case 29: return OBJECT_POLICY;
|
|
2067
|
+
case 30: return OBJECT_PROCEDURE;
|
|
2068
|
+
case 31: return OBJECT_PUBLICATION;
|
|
2069
|
+
case 32: return OBJECT_PUBLICATION_NAMESPACE;
|
|
2070
|
+
case 33: return OBJECT_PUBLICATION_REL;
|
|
2071
|
+
case 34: return OBJECT_ROLE;
|
|
2072
|
+
case 35: return OBJECT_ROUTINE;
|
|
2073
|
+
case 36: return OBJECT_RULE;
|
|
2074
|
+
case 37: return OBJECT_SCHEMA;
|
|
2075
|
+
case 38: return OBJECT_SEQUENCE;
|
|
2076
|
+
case 39: return OBJECT_SUBSCRIPTION;
|
|
2077
|
+
case 40: return OBJECT_STATISTIC_EXT;
|
|
2078
|
+
case 41: return OBJECT_TABCONSTRAINT;
|
|
2079
|
+
case 42: return OBJECT_TABLE;
|
|
2080
|
+
case 43: return OBJECT_TABLESPACE;
|
|
2081
|
+
case 44: return OBJECT_TRANSFORM;
|
|
2082
|
+
case 45: return OBJECT_TRIGGER;
|
|
2083
|
+
case 46: return OBJECT_TSCONFIGURATION;
|
|
2084
|
+
case 47: return OBJECT_TSDICTIONARY;
|
|
2085
|
+
case 48: return OBJECT_TSPARSER;
|
|
2086
|
+
case 49: return OBJECT_TSTEMPLATE;
|
|
2087
|
+
case 50: return OBJECT_TYPE;
|
|
2088
|
+
case 51: return OBJECT_USER_MAPPING;
|
|
2089
|
+
case 52: return OBJECT_VIEW;
|
|
1878
2090
|
}
|
|
1879
2091
|
Assert(false);
|
|
1880
2092
|
return OBJECT_ACCESS_METHOD;
|
|
@@ -1894,72 +2106,71 @@ static AlterTableType
|
|
|
1894
2106
|
_intToEnumAlterTableType(int value) {
|
|
1895
2107
|
switch(value) {
|
|
1896
2108
|
case 1: return AT_AddColumn;
|
|
1897
|
-
case 2: return
|
|
1898
|
-
case 3: return
|
|
1899
|
-
case 4: return
|
|
1900
|
-
case 5: return
|
|
1901
|
-
case 6: return
|
|
1902
|
-
case 7: return
|
|
1903
|
-
case 8: return
|
|
1904
|
-
case 9: return
|
|
1905
|
-
case 10: return
|
|
1906
|
-
case 11: return
|
|
1907
|
-
case 12: return
|
|
1908
|
-
case 13: return
|
|
2109
|
+
case 2: return AT_AddColumnToView;
|
|
2110
|
+
case 3: return AT_ColumnDefault;
|
|
2111
|
+
case 4: return AT_CookedColumnDefault;
|
|
2112
|
+
case 5: return AT_DropNotNull;
|
|
2113
|
+
case 6: return AT_SetNotNull;
|
|
2114
|
+
case 7: return AT_DropExpression;
|
|
2115
|
+
case 8: return AT_CheckNotNull;
|
|
2116
|
+
case 9: return AT_SetStatistics;
|
|
2117
|
+
case 10: return AT_SetOptions;
|
|
2118
|
+
case 11: return AT_ResetOptions;
|
|
2119
|
+
case 12: return AT_SetStorage;
|
|
2120
|
+
case 13: return AT_SetCompression;
|
|
1909
2121
|
case 14: return AT_DropColumn;
|
|
1910
|
-
case 15: return
|
|
1911
|
-
case 16: return
|
|
1912
|
-
case 17: return
|
|
1913
|
-
case 18: return
|
|
1914
|
-
case 19: return
|
|
1915
|
-
case 20: return
|
|
1916
|
-
case 21: return
|
|
1917
|
-
case 22: return
|
|
1918
|
-
case 23: return
|
|
1919
|
-
case 24: return
|
|
1920
|
-
case 25: return
|
|
1921
|
-
case 26: return
|
|
1922
|
-
case 27: return
|
|
1923
|
-
case 28: return
|
|
1924
|
-
case 29: return
|
|
1925
|
-
case 30: return
|
|
1926
|
-
case 31: return
|
|
1927
|
-
case 32: return
|
|
1928
|
-
case 33: return
|
|
1929
|
-
case 34: return
|
|
1930
|
-
case 35: return
|
|
1931
|
-
case 36: return
|
|
1932
|
-
case 37: return
|
|
1933
|
-
case 38: return
|
|
1934
|
-
case 39: return
|
|
1935
|
-
case 40: return
|
|
1936
|
-
case 41: return
|
|
1937
|
-
case 42: return
|
|
1938
|
-
case 43: return
|
|
1939
|
-
case 44: return
|
|
1940
|
-
case 45: return
|
|
1941
|
-
case 46: return
|
|
1942
|
-
case 47: return
|
|
1943
|
-
case 48: return
|
|
1944
|
-
case 49: return
|
|
1945
|
-
case 50: return
|
|
1946
|
-
case 51: return
|
|
1947
|
-
case 52: return
|
|
1948
|
-
case 53: return
|
|
1949
|
-
case 54: return
|
|
1950
|
-
case 55: return
|
|
1951
|
-
case 56: return
|
|
1952
|
-
case 57: return
|
|
1953
|
-
case 58: return
|
|
1954
|
-
case 59: return
|
|
1955
|
-
case 60: return
|
|
1956
|
-
case 61: return
|
|
1957
|
-
case 62: return
|
|
1958
|
-
case 63: return
|
|
1959
|
-
case 64: return
|
|
1960
|
-
case 65: return
|
|
1961
|
-
case 66: return
|
|
1962
|
-
case 67: return AT_DropIdentity;
|
|
2122
|
+
case 15: return AT_AddIndex;
|
|
2123
|
+
case 16: return AT_ReAddIndex;
|
|
2124
|
+
case 17: return AT_AddConstraint;
|
|
2125
|
+
case 18: return AT_ReAddConstraint;
|
|
2126
|
+
case 19: return AT_ReAddDomainConstraint;
|
|
2127
|
+
case 20: return AT_AlterConstraint;
|
|
2128
|
+
case 21: return AT_ValidateConstraint;
|
|
2129
|
+
case 22: return AT_AddIndexConstraint;
|
|
2130
|
+
case 23: return AT_DropConstraint;
|
|
2131
|
+
case 24: return AT_ReAddComment;
|
|
2132
|
+
case 25: return AT_AlterColumnType;
|
|
2133
|
+
case 26: return AT_AlterColumnGenericOptions;
|
|
2134
|
+
case 27: return AT_ChangeOwner;
|
|
2135
|
+
case 28: return AT_ClusterOn;
|
|
2136
|
+
case 29: return AT_DropCluster;
|
|
2137
|
+
case 30: return AT_SetLogged;
|
|
2138
|
+
case 31: return AT_SetUnLogged;
|
|
2139
|
+
case 32: return AT_DropOids;
|
|
2140
|
+
case 33: return AT_SetAccessMethod;
|
|
2141
|
+
case 34: return AT_SetTableSpace;
|
|
2142
|
+
case 35: return AT_SetRelOptions;
|
|
2143
|
+
case 36: return AT_ResetRelOptions;
|
|
2144
|
+
case 37: return AT_ReplaceRelOptions;
|
|
2145
|
+
case 38: return AT_EnableTrig;
|
|
2146
|
+
case 39: return AT_EnableAlwaysTrig;
|
|
2147
|
+
case 40: return AT_EnableReplicaTrig;
|
|
2148
|
+
case 41: return AT_DisableTrig;
|
|
2149
|
+
case 42: return AT_EnableTrigAll;
|
|
2150
|
+
case 43: return AT_DisableTrigAll;
|
|
2151
|
+
case 44: return AT_EnableTrigUser;
|
|
2152
|
+
case 45: return AT_DisableTrigUser;
|
|
2153
|
+
case 46: return AT_EnableRule;
|
|
2154
|
+
case 47: return AT_EnableAlwaysRule;
|
|
2155
|
+
case 48: return AT_EnableReplicaRule;
|
|
2156
|
+
case 49: return AT_DisableRule;
|
|
2157
|
+
case 50: return AT_AddInherit;
|
|
2158
|
+
case 51: return AT_DropInherit;
|
|
2159
|
+
case 52: return AT_AddOf;
|
|
2160
|
+
case 53: return AT_DropOf;
|
|
2161
|
+
case 54: return AT_ReplicaIdentity;
|
|
2162
|
+
case 55: return AT_EnableRowSecurity;
|
|
2163
|
+
case 56: return AT_DisableRowSecurity;
|
|
2164
|
+
case 57: return AT_ForceRowSecurity;
|
|
2165
|
+
case 58: return AT_NoForceRowSecurity;
|
|
2166
|
+
case 59: return AT_GenericOptions;
|
|
2167
|
+
case 60: return AT_AttachPartition;
|
|
2168
|
+
case 61: return AT_DetachPartition;
|
|
2169
|
+
case 62: return AT_DetachPartitionFinalize;
|
|
2170
|
+
case 63: return AT_AddIdentity;
|
|
2171
|
+
case 64: return AT_SetIdentity;
|
|
2172
|
+
case 65: return AT_DropIdentity;
|
|
2173
|
+
case 66: return AT_ReAddStatistics;
|
|
1963
2174
|
}
|
|
1964
2175
|
Assert(false);
|
|
1965
2176
|
return AT_AddColumn;
|
|
@@ -2054,6 +2265,7 @@ _intToEnumFunctionParameterMode(int value) {
|
|
|
2054
2265
|
case 3: return FUNC_PARAM_INOUT;
|
|
2055
2266
|
case 4: return FUNC_PARAM_VARIADIC;
|
|
2056
2267
|
case 5: return FUNC_PARAM_TABLE;
|
|
2268
|
+
case 6: return FUNC_PARAM_DEFAULT;
|
|
2057
2269
|
}
|
|
2058
2270
|
Assert(false);
|
|
2059
2271
|
return FUNC_PARAM_IN;
|
|
@@ -2088,16 +2300,6 @@ _intToEnumViewCheckOption(int value) {
|
|
|
2088
2300
|
return NO_CHECK_OPTION;
|
|
2089
2301
|
}
|
|
2090
2302
|
|
|
2091
|
-
static ClusterOption
|
|
2092
|
-
_intToEnumClusterOption(int value) {
|
|
2093
|
-
switch(value) {
|
|
2094
|
-
case 1: return CLUOPT_RECHECK;
|
|
2095
|
-
case 2: return CLUOPT_VERBOSE;
|
|
2096
|
-
}
|
|
2097
|
-
Assert(false);
|
|
2098
|
-
return CLUOPT_RECHECK;
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
2303
|
static DiscardMode
|
|
2102
2304
|
_intToEnumDiscardMode(int value) {
|
|
2103
2305
|
switch(value) {
|
|
@@ -2136,14 +2338,40 @@ _intToEnumAlterTSConfigType(int value) {
|
|
|
2136
2338
|
return ALTER_TSCONFIG_ADD_MAPPING;
|
|
2137
2339
|
}
|
|
2138
2340
|
|
|
2341
|
+
static PublicationObjSpecType
|
|
2342
|
+
_intToEnumPublicationObjSpecType(int value) {
|
|
2343
|
+
switch(value) {
|
|
2344
|
+
case 1: return PUBLICATIONOBJ_TABLE;
|
|
2345
|
+
case 2: return PUBLICATIONOBJ_TABLES_IN_SCHEMA;
|
|
2346
|
+
case 3: return PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA;
|
|
2347
|
+
case 4: return PUBLICATIONOBJ_CONTINUATION;
|
|
2348
|
+
}
|
|
2349
|
+
Assert(false);
|
|
2350
|
+
return PUBLICATIONOBJ_TABLE;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
static AlterPublicationAction
|
|
2354
|
+
_intToEnumAlterPublicationAction(int value) {
|
|
2355
|
+
switch(value) {
|
|
2356
|
+
case 1: return AP_AddObjects;
|
|
2357
|
+
case 2: return AP_DropObjects;
|
|
2358
|
+
case 3: return AP_SetObjects;
|
|
2359
|
+
}
|
|
2360
|
+
Assert(false);
|
|
2361
|
+
return AP_AddObjects;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2139
2364
|
static AlterSubscriptionType
|
|
2140
2365
|
_intToEnumAlterSubscriptionType(int value) {
|
|
2141
2366
|
switch(value) {
|
|
2142
2367
|
case 1: return ALTER_SUBSCRIPTION_OPTIONS;
|
|
2143
2368
|
case 2: return ALTER_SUBSCRIPTION_CONNECTION;
|
|
2144
|
-
case 3: return
|
|
2145
|
-
case 4: return
|
|
2146
|
-
case 5: return
|
|
2369
|
+
case 3: return ALTER_SUBSCRIPTION_SET_PUBLICATION;
|
|
2370
|
+
case 4: return ALTER_SUBSCRIPTION_ADD_PUBLICATION;
|
|
2371
|
+
case 5: return ALTER_SUBSCRIPTION_DROP_PUBLICATION;
|
|
2372
|
+
case 6: return ALTER_SUBSCRIPTION_REFRESH;
|
|
2373
|
+
case 7: return ALTER_SUBSCRIPTION_ENABLED;
|
|
2374
|
+
case 8: return ALTER_SUBSCRIPTION_SKIP;
|
|
2147
2375
|
}
|
|
2148
2376
|
Assert(false);
|
|
2149
2377
|
return ALTER_SUBSCRIPTION_OPTIONS;
|
|
@@ -2178,7 +2406,8 @@ _intToEnumCoercionContext(int value) {
|
|
|
2178
2406
|
switch(value) {
|
|
2179
2407
|
case 1: return COERCION_IMPLICIT;
|
|
2180
2408
|
case 2: return COERCION_ASSIGNMENT;
|
|
2181
|
-
case 3: return
|
|
2409
|
+
case 3: return COERCION_PLPGSQL;
|
|
2410
|
+
case 4: return COERCION_EXPLICIT;
|
|
2182
2411
|
}
|
|
2183
2412
|
Assert(false);
|
|
2184
2413
|
return COERCION_IMPLICIT;
|
|
@@ -2190,6 +2419,7 @@ _intToEnumCoercionForm(int value) {
|
|
|
2190
2419
|
case 1: return COERCE_EXPLICIT_CALL;
|
|
2191
2420
|
case 2: return COERCE_EXPLICIT_CAST;
|
|
2192
2421
|
case 3: return COERCE_IMPLICIT_CAST;
|
|
2422
|
+
case 4: return COERCE_SQL_SYNTAX;
|
|
2193
2423
|
}
|
|
2194
2424
|
Assert(false);
|
|
2195
2425
|
return COERCE_EXPLICIT_CALL;
|
|
@@ -2295,6 +2525,53 @@ _intToEnumXmlOptionType(int value) {
|
|
|
2295
2525
|
return XMLOPTION_DOCUMENT;
|
|
2296
2526
|
}
|
|
2297
2527
|
|
|
2528
|
+
static JsonEncoding
|
|
2529
|
+
_intToEnumJsonEncoding(int value) {
|
|
2530
|
+
switch(value) {
|
|
2531
|
+
case 1: return JS_ENC_DEFAULT;
|
|
2532
|
+
case 2: return JS_ENC_UTF8;
|
|
2533
|
+
case 3: return JS_ENC_UTF16;
|
|
2534
|
+
case 4: return JS_ENC_UTF32;
|
|
2535
|
+
}
|
|
2536
|
+
Assert(false);
|
|
2537
|
+
return JS_ENC_DEFAULT;
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
static JsonFormatType
|
|
2541
|
+
_intToEnumJsonFormatType(int value) {
|
|
2542
|
+
switch(value) {
|
|
2543
|
+
case 1: return JS_FORMAT_DEFAULT;
|
|
2544
|
+
case 2: return JS_FORMAT_JSON;
|
|
2545
|
+
case 3: return JS_FORMAT_JSONB;
|
|
2546
|
+
}
|
|
2547
|
+
Assert(false);
|
|
2548
|
+
return JS_FORMAT_DEFAULT;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
static JsonConstructorType
|
|
2552
|
+
_intToEnumJsonConstructorType(int value) {
|
|
2553
|
+
switch(value) {
|
|
2554
|
+
case 1: return JSCTOR_JSON_OBJECT;
|
|
2555
|
+
case 2: return JSCTOR_JSON_ARRAY;
|
|
2556
|
+
case 3: return JSCTOR_JSON_OBJECTAGG;
|
|
2557
|
+
case 4: return JSCTOR_JSON_ARRAYAGG;
|
|
2558
|
+
}
|
|
2559
|
+
Assert(false);
|
|
2560
|
+
return JSCTOR_JSON_OBJECT;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
static JsonValueType
|
|
2564
|
+
_intToEnumJsonValueType(int value) {
|
|
2565
|
+
switch(value) {
|
|
2566
|
+
case 1: return JS_TYPE_ANY;
|
|
2567
|
+
case 2: return JS_TYPE_OBJECT;
|
|
2568
|
+
case 3: return JS_TYPE_ARRAY;
|
|
2569
|
+
case 4: return JS_TYPE_SCALAR;
|
|
2570
|
+
}
|
|
2571
|
+
Assert(false);
|
|
2572
|
+
return JS_TYPE_ANY;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2298
2575
|
static NullTestType
|
|
2299
2576
|
_intToEnumNullTestType(int value) {
|
|
2300
2577
|
switch(value) {
|
|
@@ -2327,8 +2604,9 @@ _intToEnumCmdType(int value) {
|
|
|
2327
2604
|
case 3: return CMD_UPDATE;
|
|
2328
2605
|
case 4: return CMD_INSERT;
|
|
2329
2606
|
case 5: return CMD_DELETE;
|
|
2330
|
-
case 6: return
|
|
2331
|
-
case 7: return
|
|
2607
|
+
case 6: return CMD_MERGE;
|
|
2608
|
+
case 7: return CMD_UTILITY;
|
|
2609
|
+
case 8: return CMD_NOTHING;
|
|
2332
2610
|
}
|
|
2333
2611
|
Assert(false);
|
|
2334
2612
|
return CMD_UNKNOWN;
|
|
@@ -2343,8 +2621,9 @@ _intToEnumJoinType(int value) {
|
|
|
2343
2621
|
case 4: return JOIN_RIGHT;
|
|
2344
2622
|
case 5: return JOIN_SEMI;
|
|
2345
2623
|
case 6: return JOIN_ANTI;
|
|
2346
|
-
case 7: return
|
|
2347
|
-
case 8: return
|
|
2624
|
+
case 7: return JOIN_RIGHT_ANTI;
|
|
2625
|
+
case 8: return JOIN_UNIQUE_OUTER;
|
|
2626
|
+
case 9: return JOIN_UNIQUE_INNER;
|
|
2348
2627
|
}
|
|
2349
2628
|
Assert(false);
|
|
2350
2629
|
return JOIN_INNER;
|