gitlab-pg_query 1.3.1 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +217 -99
- data/README.md +92 -69
- data/Rakefile +85 -5
- data/ext/pg_query/extconf.rb +3 -40
- data/ext/pg_query/guc-file.c +0 -0
- data/ext/pg_query/include/access/amapi.h +246 -0
- data/ext/pg_query/include/access/attmap.h +52 -0
- data/ext/pg_query/include/access/attnum.h +64 -0
- data/ext/pg_query/include/access/clog.h +61 -0
- data/ext/pg_query/include/access/commit_ts.h +77 -0
- data/ext/pg_query/include/access/detoast.h +92 -0
- data/ext/pg_query/include/access/genam.h +228 -0
- data/ext/pg_query/include/access/gin.h +78 -0
- data/ext/pg_query/include/access/htup.h +89 -0
- data/ext/pg_query/include/access/htup_details.h +819 -0
- data/ext/pg_query/include/access/itup.h +161 -0
- data/ext/pg_query/include/access/parallel.h +82 -0
- data/ext/pg_query/include/access/printtup.h +35 -0
- data/ext/pg_query/include/access/relation.h +28 -0
- data/ext/pg_query/include/access/relscan.h +176 -0
- data/ext/pg_query/include/access/rmgr.h +35 -0
- data/ext/pg_query/include/access/rmgrlist.h +49 -0
- data/ext/pg_query/include/access/sdir.h +58 -0
- data/ext/pg_query/include/access/skey.h +151 -0
- data/ext/pg_query/include/access/stratnum.h +83 -0
- data/ext/pg_query/include/access/sysattr.h +29 -0
- data/ext/pg_query/include/access/table.h +27 -0
- data/ext/pg_query/include/access/tableam.h +1825 -0
- data/ext/pg_query/include/access/transam.h +265 -0
- data/ext/pg_query/include/access/tupconvert.h +51 -0
- data/ext/pg_query/include/access/tupdesc.h +154 -0
- data/ext/pg_query/include/access/tupmacs.h +247 -0
- data/ext/pg_query/include/access/twophase.h +61 -0
- data/ext/pg_query/include/access/xact.h +463 -0
- data/ext/pg_query/include/access/xlog.h +398 -0
- data/ext/pg_query/include/access/xlog_internal.h +330 -0
- data/ext/pg_query/include/access/xlogdefs.h +109 -0
- data/ext/pg_query/include/access/xloginsert.h +64 -0
- data/ext/pg_query/include/access/xlogreader.h +327 -0
- data/ext/pg_query/include/access/xlogrecord.h +227 -0
- data/ext/pg_query/include/bootstrap/bootstrap.h +62 -0
- data/ext/pg_query/include/c.h +1322 -0
- data/ext/pg_query/include/catalog/catalog.h +42 -0
- data/ext/pg_query/include/catalog/catversion.h +58 -0
- data/ext/pg_query/include/catalog/dependency.h +275 -0
- data/ext/pg_query/include/catalog/genbki.h +64 -0
- data/ext/pg_query/include/catalog/index.h +199 -0
- data/ext/pg_query/include/catalog/indexing.h +366 -0
- data/ext/pg_query/include/catalog/namespace.h +188 -0
- data/ext/pg_query/include/catalog/objectaccess.h +197 -0
- data/ext/pg_query/include/catalog/objectaddress.h +84 -0
- data/ext/pg_query/include/catalog/pg_aggregate.h +176 -0
- data/ext/pg_query/include/catalog/pg_aggregate_d.h +77 -0
- data/ext/pg_query/include/catalog/pg_am.h +60 -0
- data/ext/pg_query/include/catalog/pg_am_d.h +45 -0
- data/ext/pg_query/include/catalog/pg_attribute.h +204 -0
- data/ext/pg_query/include/catalog/pg_attribute_d.h +59 -0
- data/ext/pg_query/include/catalog/pg_authid.h +58 -0
- data/ext/pg_query/include/catalog/pg_authid_d.h +49 -0
- data/ext/pg_query/include/catalog/pg_class.h +200 -0
- data/ext/pg_query/include/catalog/pg_class_d.h +103 -0
- data/ext/pg_query/include/catalog/pg_collation.h +73 -0
- data/ext/pg_query/include/catalog/pg_collation_d.h +45 -0
- data/ext/pg_query/include/catalog/pg_constraint.h +247 -0
- data/ext/pg_query/include/catalog/pg_constraint_d.h +67 -0
- data/ext/pg_query/include/catalog/pg_control.h +250 -0
- data/ext/pg_query/include/catalog/pg_conversion.h +72 -0
- data/ext/pg_query/include/catalog/pg_conversion_d.h +35 -0
- data/ext/pg_query/include/catalog/pg_depend.h +73 -0
- data/ext/pg_query/include/catalog/pg_depend_d.h +34 -0
- data/ext/pg_query/include/catalog/pg_event_trigger.h +51 -0
- data/ext/pg_query/include/catalog/pg_event_trigger_d.h +34 -0
- data/ext/pg_query/include/catalog/pg_index.h +80 -0
- data/ext/pg_query/include/catalog/pg_index_d.h +56 -0
- data/ext/pg_query/include/catalog/pg_language.h +67 -0
- data/ext/pg_query/include/catalog/pg_language_d.h +39 -0
- data/ext/pg_query/include/catalog/pg_namespace.h +59 -0
- data/ext/pg_query/include/catalog/pg_namespace_d.h +34 -0
- data/ext/pg_query/include/catalog/pg_opclass.h +85 -0
- data/ext/pg_query/include/catalog/pg_opclass_d.h +49 -0
- data/ext/pg_query/include/catalog/pg_operator.h +102 -0
- data/ext/pg_query/include/catalog/pg_operator_d.h +106 -0
- data/ext/pg_query/include/catalog/pg_opfamily.h +60 -0
- data/ext/pg_query/include/catalog/pg_opfamily_d.h +47 -0
- data/ext/pg_query/include/catalog/pg_partitioned_table.h +63 -0
- data/ext/pg_query/include/catalog/pg_partitioned_table_d.h +35 -0
- data/ext/pg_query/include/catalog/pg_proc.h +211 -0
- data/ext/pg_query/include/catalog/pg_proc_d.h +99 -0
- data/ext/pg_query/include/catalog/pg_publication.h +115 -0
- data/ext/pg_query/include/catalog/pg_publication_d.h +36 -0
- data/ext/pg_query/include/catalog/pg_replication_origin.h +57 -0
- data/ext/pg_query/include/catalog/pg_replication_origin_d.h +29 -0
- data/ext/pg_query/include/catalog/pg_statistic.h +275 -0
- data/ext/pg_query/include/catalog/pg_statistic_d.h +194 -0
- data/ext/pg_query/include/catalog/pg_statistic_ext.h +74 -0
- data/ext/pg_query/include/catalog/pg_statistic_ext_d.h +40 -0
- data/ext/pg_query/include/catalog/pg_transform.h +45 -0
- data/ext/pg_query/include/catalog/pg_transform_d.h +32 -0
- data/ext/pg_query/include/catalog/pg_trigger.h +137 -0
- data/ext/pg_query/include/catalog/pg_trigger_d.h +106 -0
- data/ext/pg_query/include/catalog/pg_ts_config.h +50 -0
- data/ext/pg_query/include/catalog/pg_ts_config_d.h +32 -0
- data/ext/pg_query/include/catalog/pg_ts_dict.h +54 -0
- data/ext/pg_query/include/catalog/pg_ts_dict_d.h +33 -0
- data/ext/pg_query/include/catalog/pg_ts_parser.h +57 -0
- data/ext/pg_query/include/catalog/pg_ts_parser_d.h +35 -0
- data/ext/pg_query/include/catalog/pg_ts_template.h +48 -0
- data/ext/pg_query/include/catalog/pg_ts_template_d.h +32 -0
- data/ext/pg_query/include/catalog/pg_type.h +372 -0
- data/ext/pg_query/include/catalog/pg_type_d.h +285 -0
- data/ext/pg_query/include/catalog/storage.h +48 -0
- data/ext/pg_query/include/commands/async.h +54 -0
- data/ext/pg_query/include/commands/dbcommands.h +35 -0
- data/ext/pg_query/include/commands/defrem.h +173 -0
- data/ext/pg_query/include/commands/event_trigger.h +88 -0
- data/ext/pg_query/include/commands/explain.h +127 -0
- data/ext/pg_query/include/commands/prepare.h +61 -0
- data/ext/pg_query/include/commands/tablespace.h +67 -0
- data/ext/pg_query/include/commands/trigger.h +277 -0
- data/ext/pg_query/include/commands/user.h +37 -0
- data/ext/pg_query/include/commands/vacuum.h +293 -0
- data/ext/pg_query/include/commands/variable.h +38 -0
- data/ext/pg_query/include/common/file_perm.h +56 -0
- data/ext/pg_query/include/common/hashfn.h +104 -0
- data/ext/pg_query/include/common/ip.h +37 -0
- data/ext/pg_query/include/common/keywords.h +33 -0
- data/ext/pg_query/include/common/kwlookup.h +44 -0
- data/ext/pg_query/include/common/relpath.h +90 -0
- data/ext/pg_query/include/common/string.h +19 -0
- data/ext/pg_query/include/common/unicode_combining_table.h +196 -0
- data/ext/pg_query/include/datatype/timestamp.h +197 -0
- data/ext/pg_query/include/executor/execdesc.h +70 -0
- data/ext/pg_query/include/executor/executor.h +614 -0
- data/ext/pg_query/include/executor/functions.h +41 -0
- data/ext/pg_query/include/executor/instrument.h +101 -0
- data/ext/pg_query/include/executor/spi.h +175 -0
- data/ext/pg_query/include/executor/tablefunc.h +67 -0
- data/ext/pg_query/include/executor/tuptable.h +487 -0
- data/ext/pg_query/include/fmgr.h +775 -0
- data/ext/pg_query/include/funcapi.h +348 -0
- data/ext/pg_query/include/getaddrinfo.h +162 -0
- data/ext/pg_query/include/jit/jit.h +105 -0
- data/ext/pg_query/include/kwlist_d.h +1072 -0
- data/ext/pg_query/include/lib/ilist.h +727 -0
- data/ext/pg_query/include/lib/pairingheap.h +102 -0
- data/ext/pg_query/include/lib/simplehash.h +1059 -0
- data/ext/pg_query/include/lib/stringinfo.h +161 -0
- data/ext/pg_query/include/libpq/auth.h +29 -0
- data/ext/pg_query/include/libpq/crypt.h +46 -0
- data/ext/pg_query/include/libpq/hba.h +140 -0
- data/ext/pg_query/include/libpq/libpq-be.h +326 -0
- data/ext/pg_query/include/libpq/libpq.h +133 -0
- data/ext/pg_query/include/libpq/pqcomm.h +208 -0
- data/ext/pg_query/include/libpq/pqformat.h +210 -0
- data/ext/pg_query/include/libpq/pqsignal.h +42 -0
- data/ext/pg_query/include/mb/pg_wchar.h +672 -0
- data/ext/pg_query/include/mb/stringinfo_mb.h +24 -0
- data/ext/pg_query/include/miscadmin.h +476 -0
- data/ext/pg_query/include/nodes/bitmapset.h +122 -0
- data/ext/pg_query/include/nodes/execnodes.h +2520 -0
- data/ext/pg_query/include/nodes/extensible.h +160 -0
- data/ext/pg_query/include/nodes/lockoptions.h +61 -0
- data/ext/pg_query/include/nodes/makefuncs.h +108 -0
- data/ext/pg_query/include/nodes/memnodes.h +108 -0
- data/ext/pg_query/include/nodes/nodeFuncs.h +162 -0
- data/ext/pg_query/include/nodes/nodes.h +842 -0
- data/ext/pg_query/include/nodes/params.h +170 -0
- data/ext/pg_query/include/nodes/parsenodes.h +3579 -0
- data/ext/pg_query/include/nodes/pathnodes.h +2556 -0
- data/ext/pg_query/include/nodes/pg_list.h +605 -0
- data/ext/pg_query/include/nodes/plannodes.h +1251 -0
- data/ext/pg_query/include/nodes/primnodes.h +1541 -0
- data/ext/pg_query/include/nodes/print.h +34 -0
- data/ext/pg_query/include/nodes/tidbitmap.h +75 -0
- data/ext/pg_query/include/nodes/value.h +61 -0
- data/ext/pg_query/include/optimizer/cost.h +206 -0
- data/ext/pg_query/include/optimizer/geqo.h +88 -0
- data/ext/pg_query/include/optimizer/geqo_gene.h +45 -0
- data/ext/pg_query/include/optimizer/optimizer.h +199 -0
- data/ext/pg_query/include/optimizer/paths.h +249 -0
- data/ext/pg_query/include/optimizer/planmain.h +119 -0
- data/ext/pg_query/include/parser/analyze.h +49 -0
- data/ext/pg_query/include/parser/gram.h +1067 -0
- data/ext/pg_query/include/parser/gramparse.h +75 -0
- data/ext/pg_query/include/parser/kwlist.h +477 -0
- data/ext/pg_query/include/parser/parse_agg.h +68 -0
- data/ext/pg_query/include/parser/parse_clause.h +54 -0
- data/ext/pg_query/include/parser/parse_coerce.h +97 -0
- data/ext/pg_query/include/parser/parse_collate.h +27 -0
- data/ext/pg_query/include/parser/parse_expr.h +26 -0
- data/ext/pg_query/include/parser/parse_func.h +73 -0
- data/ext/pg_query/include/parser/parse_node.h +327 -0
- data/ext/pg_query/include/parser/parse_oper.h +67 -0
- data/ext/pg_query/include/parser/parse_relation.h +123 -0
- data/ext/pg_query/include/parser/parse_target.h +46 -0
- data/ext/pg_query/include/parser/parse_type.h +60 -0
- data/ext/pg_query/include/parser/parser.h +41 -0
- data/ext/pg_query/include/parser/parsetree.h +61 -0
- data/ext/pg_query/include/parser/scanner.h +152 -0
- data/ext/pg_query/include/parser/scansup.h +30 -0
- data/ext/pg_query/include/partitioning/partdefs.h +26 -0
- data/ext/pg_query/include/pg_config.h +989 -0
- data/ext/pg_query/include/pg_config_ext.h +8 -0
- data/ext/pg_query/include/pg_config_manual.h +350 -0
- data/ext/pg_query/include/pg_config_os.h +8 -0
- data/ext/pg_query/include/pg_getopt.h +56 -0
- data/ext/pg_query/include/pg_query.h +121 -0
- data/ext/pg_query/include/pg_query_enum_defs.c +2454 -0
- data/ext/pg_query/include/pg_query_fingerprint_conds.c +875 -0
- data/ext/pg_query/include/pg_query_fingerprint_defs.c +12413 -0
- data/ext/pg_query/include/pg_query_json_helper.c +61 -0
- data/ext/pg_query/include/pg_query_outfuncs_conds.c +686 -0
- data/ext/pg_query/include/pg_query_outfuncs_defs.c +2437 -0
- data/ext/pg_query/include/pg_query_readfuncs_conds.c +222 -0
- data/ext/pg_query/include/pg_query_readfuncs_defs.c +2878 -0
- data/ext/pg_query/include/pg_trace.h +17 -0
- data/ext/pg_query/include/pgstat.h +1487 -0
- data/ext/pg_query/include/pgtime.h +84 -0
- data/ext/pg_query/include/pl_gram.h +385 -0
- data/ext/pg_query/include/pl_reserved_kwlist.h +52 -0
- data/ext/pg_query/include/pl_reserved_kwlist_d.h +114 -0
- data/ext/pg_query/include/pl_unreserved_kwlist.h +112 -0
- data/ext/pg_query/include/pl_unreserved_kwlist_d.h +246 -0
- data/ext/pg_query/include/plerrcodes.h +990 -0
- data/ext/pg_query/include/plpgsql.h +1347 -0
- data/ext/pg_query/include/port.h +524 -0
- data/ext/pg_query/include/port/atomics.h +524 -0
- data/ext/pg_query/include/port/atomics/arch-arm.h +26 -0
- data/ext/pg_query/include/port/atomics/arch-ppc.h +254 -0
- data/ext/pg_query/include/port/atomics/arch-x86.h +252 -0
- data/ext/pg_query/include/port/atomics/fallback.h +170 -0
- data/ext/pg_query/include/port/atomics/generic-gcc.h +286 -0
- data/ext/pg_query/include/port/atomics/generic.h +401 -0
- data/ext/pg_query/include/port/pg_bitutils.h +226 -0
- data/ext/pg_query/include/port/pg_bswap.h +161 -0
- data/ext/pg_query/include/port/pg_crc32c.h +101 -0
- data/ext/pg_query/include/portability/instr_time.h +256 -0
- data/ext/pg_query/include/postgres.h +764 -0
- data/ext/pg_query/include/postgres_ext.h +74 -0
- data/ext/pg_query/include/postmaster/autovacuum.h +83 -0
- data/ext/pg_query/include/postmaster/bgworker.h +161 -0
- data/ext/pg_query/include/postmaster/bgworker_internals.h +64 -0
- data/ext/pg_query/include/postmaster/bgwriter.h +45 -0
- data/ext/pg_query/include/postmaster/fork_process.h +17 -0
- data/ext/pg_query/include/postmaster/interrupt.h +32 -0
- data/ext/pg_query/include/postmaster/pgarch.h +39 -0
- data/ext/pg_query/include/postmaster/postmaster.h +77 -0
- data/ext/pg_query/include/postmaster/syslogger.h +98 -0
- data/ext/pg_query/include/postmaster/walwriter.h +21 -0
- data/ext/pg_query/include/protobuf-c.h +1106 -0
- data/ext/pg_query/include/protobuf-c/protobuf-c.h +1106 -0
- data/ext/pg_query/include/protobuf/pg_query.pb-c.h +10846 -0
- data/ext/pg_query/include/protobuf/pg_query.pb.h +124718 -0
- data/ext/pg_query/include/regex/regex.h +184 -0
- data/ext/pg_query/include/replication/logicallauncher.h +31 -0
- data/ext/pg_query/include/replication/logicalproto.h +110 -0
- data/ext/pg_query/include/replication/logicalworker.h +19 -0
- data/ext/pg_query/include/replication/origin.h +73 -0
- data/ext/pg_query/include/replication/reorderbuffer.h +467 -0
- data/ext/pg_query/include/replication/slot.h +219 -0
- data/ext/pg_query/include/replication/syncrep.h +115 -0
- data/ext/pg_query/include/replication/walreceiver.h +340 -0
- data/ext/pg_query/include/replication/walsender.h +74 -0
- data/ext/pg_query/include/rewrite/prs2lock.h +46 -0
- data/ext/pg_query/include/rewrite/rewriteHandler.h +40 -0
- data/ext/pg_query/include/rewrite/rewriteManip.h +87 -0
- data/ext/pg_query/include/rewrite/rewriteSupport.h +26 -0
- data/ext/pg_query/include/storage/backendid.h +37 -0
- data/ext/pg_query/include/storage/block.h +121 -0
- data/ext/pg_query/include/storage/buf.h +46 -0
- data/ext/pg_query/include/storage/bufmgr.h +292 -0
- data/ext/pg_query/include/storage/bufpage.h +459 -0
- data/ext/pg_query/include/storage/condition_variable.h +62 -0
- data/ext/pg_query/include/storage/dsm.h +61 -0
- data/ext/pg_query/include/storage/dsm_impl.h +75 -0
- data/ext/pg_query/include/storage/fd.h +168 -0
- data/ext/pg_query/include/storage/ipc.h +81 -0
- data/ext/pg_query/include/storage/item.h +19 -0
- data/ext/pg_query/include/storage/itemid.h +184 -0
- data/ext/pg_query/include/storage/itemptr.h +206 -0
- data/ext/pg_query/include/storage/large_object.h +100 -0
- data/ext/pg_query/include/storage/latch.h +190 -0
- data/ext/pg_query/include/storage/lmgr.h +114 -0
- data/ext/pg_query/include/storage/lock.h +612 -0
- data/ext/pg_query/include/storage/lockdefs.h +59 -0
- data/ext/pg_query/include/storage/lwlock.h +232 -0
- data/ext/pg_query/include/storage/lwlocknames.h +51 -0
- data/ext/pg_query/include/storage/off.h +57 -0
- data/ext/pg_query/include/storage/pg_sema.h +61 -0
- data/ext/pg_query/include/storage/pg_shmem.h +90 -0
- data/ext/pg_query/include/storage/pmsignal.h +94 -0
- data/ext/pg_query/include/storage/predicate.h +87 -0
- data/ext/pg_query/include/storage/proc.h +333 -0
- data/ext/pg_query/include/storage/proclist_types.h +51 -0
- data/ext/pg_query/include/storage/procsignal.h +75 -0
- data/ext/pg_query/include/storage/relfilenode.h +99 -0
- data/ext/pg_query/include/storage/s_lock.h +1047 -0
- data/ext/pg_query/include/storage/sharedfileset.h +45 -0
- data/ext/pg_query/include/storage/shm_mq.h +85 -0
- data/ext/pg_query/include/storage/shm_toc.h +58 -0
- data/ext/pg_query/include/storage/shmem.h +81 -0
- data/ext/pg_query/include/storage/sinval.h +153 -0
- data/ext/pg_query/include/storage/sinvaladt.h +43 -0
- data/ext/pg_query/include/storage/smgr.h +109 -0
- data/ext/pg_query/include/storage/spin.h +77 -0
- data/ext/pg_query/include/storage/standby.h +91 -0
- data/ext/pg_query/include/storage/standbydefs.h +74 -0
- data/ext/pg_query/include/storage/sync.h +62 -0
- data/ext/pg_query/include/tcop/cmdtag.h +58 -0
- data/ext/pg_query/include/tcop/cmdtaglist.h +217 -0
- data/ext/pg_query/include/tcop/deparse_utility.h +108 -0
- data/ext/pg_query/include/tcop/dest.h +149 -0
- data/ext/pg_query/include/tcop/fastpath.h +21 -0
- data/ext/pg_query/include/tcop/pquery.h +45 -0
- data/ext/pg_query/include/tcop/tcopprot.h +89 -0
- data/ext/pg_query/include/tcop/utility.h +108 -0
- data/ext/pg_query/include/tsearch/ts_cache.h +98 -0
- data/ext/pg_query/include/utils/acl.h +312 -0
- data/ext/pg_query/include/utils/aclchk_internal.h +45 -0
- data/ext/pg_query/include/utils/array.h +458 -0
- data/ext/pg_query/include/utils/builtins.h +127 -0
- data/ext/pg_query/include/utils/bytea.h +27 -0
- data/ext/pg_query/include/utils/catcache.h +231 -0
- data/ext/pg_query/include/utils/date.h +90 -0
- data/ext/pg_query/include/utils/datetime.h +343 -0
- data/ext/pg_query/include/utils/datum.h +68 -0
- data/ext/pg_query/include/utils/dsa.h +123 -0
- data/ext/pg_query/include/utils/dynahash.h +19 -0
- data/ext/pg_query/include/utils/elog.h +439 -0
- data/ext/pg_query/include/utils/errcodes.h +352 -0
- data/ext/pg_query/include/utils/expandeddatum.h +159 -0
- data/ext/pg_query/include/utils/expandedrecord.h +231 -0
- data/ext/pg_query/include/utils/float.h +356 -0
- data/ext/pg_query/include/utils/fmgroids.h +2657 -0
- data/ext/pg_query/include/utils/fmgrprotos.h +2646 -0
- data/ext/pg_query/include/utils/fmgrtab.h +48 -0
- data/ext/pg_query/include/utils/guc.h +443 -0
- data/ext/pg_query/include/utils/guc_tables.h +272 -0
- data/ext/pg_query/include/utils/hsearch.h +149 -0
- data/ext/pg_query/include/utils/inval.h +64 -0
- data/ext/pg_query/include/utils/lsyscache.h +197 -0
- data/ext/pg_query/include/utils/memdebug.h +82 -0
- data/ext/pg_query/include/utils/memutils.h +225 -0
- data/ext/pg_query/include/utils/numeric.h +76 -0
- data/ext/pg_query/include/utils/palloc.h +136 -0
- data/ext/pg_query/include/utils/partcache.h +102 -0
- data/ext/pg_query/include/utils/pg_locale.h +119 -0
- data/ext/pg_query/include/utils/pg_lsn.h +29 -0
- data/ext/pg_query/include/utils/pidfile.h +56 -0
- data/ext/pg_query/include/utils/plancache.h +235 -0
- data/ext/pg_query/include/utils/portal.h +241 -0
- data/ext/pg_query/include/utils/probes.h +114 -0
- data/ext/pg_query/include/utils/ps_status.h +25 -0
- data/ext/pg_query/include/utils/queryenvironment.h +74 -0
- data/ext/pg_query/include/utils/regproc.h +28 -0
- data/ext/pg_query/include/utils/rel.h +644 -0
- data/ext/pg_query/include/utils/relcache.h +151 -0
- data/ext/pg_query/include/utils/reltrigger.h +81 -0
- data/ext/pg_query/include/utils/resowner.h +86 -0
- data/ext/pg_query/include/utils/rls.h +50 -0
- data/ext/pg_query/include/utils/ruleutils.h +44 -0
- data/ext/pg_query/include/utils/sharedtuplestore.h +61 -0
- data/ext/pg_query/include/utils/snapmgr.h +158 -0
- data/ext/pg_query/include/utils/snapshot.h +206 -0
- data/ext/pg_query/include/utils/sortsupport.h +276 -0
- data/ext/pg_query/include/utils/syscache.h +219 -0
- data/ext/pg_query/include/utils/timeout.h +88 -0
- data/ext/pg_query/include/utils/timestamp.h +116 -0
- data/ext/pg_query/include/utils/tuplesort.h +277 -0
- data/ext/pg_query/include/utils/tuplestore.h +91 -0
- data/ext/pg_query/include/utils/typcache.h +202 -0
- data/ext/pg_query/include/utils/tzparser.h +39 -0
- data/ext/pg_query/include/utils/varlena.h +39 -0
- data/ext/pg_query/include/utils/xml.h +84 -0
- data/ext/pg_query/include/xxhash.h +5445 -0
- data/ext/pg_query/include/xxhash/xxhash.h +5445 -0
- data/ext/pg_query/pg_query.c +104 -0
- data/ext/pg_query/pg_query.pb-c.c +37628 -0
- data/ext/pg_query/pg_query_deparse.c +9959 -0
- data/ext/pg_query/pg_query_fingerprint.c +295 -0
- data/ext/pg_query/pg_query_fingerprint.h +8 -0
- data/ext/pg_query/pg_query_internal.h +24 -0
- data/ext/pg_query/pg_query_json_plpgsql.c +738 -0
- data/ext/pg_query/pg_query_json_plpgsql.h +9 -0
- data/ext/pg_query/pg_query_normalize.c +439 -0
- data/ext/pg_query/pg_query_outfuncs.h +10 -0
- data/ext/pg_query/pg_query_outfuncs_json.c +297 -0
- data/ext/pg_query/pg_query_outfuncs_protobuf.c +237 -0
- data/ext/pg_query/pg_query_parse.c +148 -0
- data/ext/pg_query/pg_query_parse_plpgsql.c +460 -0
- data/ext/pg_query/pg_query_readfuncs.h +11 -0
- data/ext/pg_query/pg_query_readfuncs_protobuf.c +142 -0
- data/ext/pg_query/pg_query_ruby.c +108 -12
- data/ext/pg_query/pg_query_scan.c +173 -0
- data/ext/pg_query/pg_query_split.c +221 -0
- data/ext/pg_query/protobuf-c.c +3660 -0
- data/ext/pg_query/src_backend_catalog_namespace.c +1051 -0
- data/ext/pg_query/src_backend_catalog_pg_proc.c +142 -0
- data/ext/pg_query/src_backend_commands_define.c +117 -0
- data/ext/pg_query/src_backend_libpq_pqcomm.c +651 -0
- data/ext/pg_query/src_backend_nodes_bitmapset.c +513 -0
- data/ext/pg_query/src_backend_nodes_copyfuncs.c +6013 -0
- data/ext/pg_query/src_backend_nodes_equalfuncs.c +4003 -0
- data/ext/pg_query/src_backend_nodes_extensible.c +99 -0
- data/ext/pg_query/src_backend_nodes_list.c +922 -0
- data/ext/pg_query/src_backend_nodes_makefuncs.c +417 -0
- data/ext/pg_query/src_backend_nodes_nodeFuncs.c +1363 -0
- data/ext/pg_query/src_backend_nodes_value.c +84 -0
- data/ext/pg_query/src_backend_parser_gram.c +47456 -0
- data/ext/pg_query/src_backend_parser_parse_expr.c +313 -0
- data/ext/pg_query/src_backend_parser_parser.c +497 -0
- data/ext/pg_query/src_backend_parser_scan.c +7091 -0
- data/ext/pg_query/src_backend_parser_scansup.c +160 -0
- data/ext/pg_query/src_backend_postmaster_postmaster.c +2230 -0
- data/ext/pg_query/src_backend_storage_ipc_ipc.c +192 -0
- data/ext/pg_query/src_backend_storage_lmgr_s_lock.c +370 -0
- data/ext/pg_query/src_backend_tcop_postgres.c +776 -0
- data/ext/pg_query/src_backend_utils_adt_datum.c +326 -0
- data/ext/pg_query/src_backend_utils_adt_expandeddatum.c +98 -0
- data/ext/pg_query/src_backend_utils_adt_format_type.c +136 -0
- data/ext/pg_query/src_backend_utils_adt_ruleutils.c +1683 -0
- data/ext/pg_query/src_backend_utils_error_assert.c +74 -0
- data/ext/pg_query/src_backend_utils_error_elog.c +1748 -0
- data/ext/pg_query/src_backend_utils_fmgr_fmgr.c +570 -0
- data/ext/pg_query/src_backend_utils_hash_dynahash.c +1086 -0
- data/ext/pg_query/src_backend_utils_init_globals.c +168 -0
- data/ext/pg_query/src_backend_utils_mb_mbutils.c +839 -0
- data/ext/pg_query/src_backend_utils_misc_guc.c +1831 -0
- data/ext/pg_query/src_backend_utils_mmgr_aset.c +1560 -0
- data/ext/pg_query/src_backend_utils_mmgr_mcxt.c +1006 -0
- data/ext/pg_query/src_common_encnames.c +158 -0
- data/ext/pg_query/src_common_keywords.c +39 -0
- data/ext/pg_query/src_common_kwlist_d.h +1081 -0
- data/ext/pg_query/src_common_kwlookup.c +91 -0
- data/ext/pg_query/src_common_psprintf.c +158 -0
- data/ext/pg_query/src_common_string.c +86 -0
- data/ext/pg_query/src_common_stringinfo.c +336 -0
- data/ext/pg_query/src_common_wchar.c +1651 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_comp.c +1133 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_funcs.c +877 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_gram.c +6533 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_handler.c +107 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_reserved_kwlist_d.h +123 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_scanner.c +671 -0
- data/ext/pg_query/src_pl_plpgsql_src_pl_unreserved_kwlist_d.h +255 -0
- data/ext/pg_query/src_port_erand48.c +127 -0
- data/ext/pg_query/src_port_pg_bitutils.c +246 -0
- data/ext/pg_query/src_port_pgsleep.c +69 -0
- data/ext/pg_query/src_port_pgstrcasecmp.c +83 -0
- data/ext/pg_query/src_port_qsort.c +240 -0
- data/ext/pg_query/src_port_random.c +31 -0
- data/ext/pg_query/src_port_snprintf.c +1449 -0
- data/ext/pg_query/src_port_strerror.c +324 -0
- data/ext/pg_query/src_port_strnlen.c +39 -0
- data/ext/pg_query/xxhash.c +43 -0
- data/lib/pg_query.rb +7 -4
- data/lib/pg_query/constants.rb +21 -0
- data/lib/pg_query/deparse.rb +15 -1581
- data/lib/pg_query/filter_columns.rb +88 -85
- data/lib/pg_query/fingerprint.rb +122 -87
- data/lib/pg_query/json_field_names.rb +1402 -0
- data/lib/pg_query/node.rb +31 -0
- data/lib/pg_query/param_refs.rb +42 -37
- data/lib/pg_query/parse.rb +220 -203
- data/lib/pg_query/parse_error.rb +1 -1
- data/lib/pg_query/pg_query_pb.rb +3211 -0
- data/lib/pg_query/scan.rb +23 -0
- data/lib/pg_query/treewalker.rb +24 -40
- data/lib/pg_query/truncate.rb +71 -42
- data/lib/pg_query/version.rb +2 -2
- metadata +472 -11
- data/ext/pg_query/pg_query_ruby.h +0 -10
- data/lib/pg_query/deep_dup.rb +0 -16
- data/lib/pg_query/deparse/alter_table.rb +0 -42
- data/lib/pg_query/deparse/interval.rb +0 -105
- data/lib/pg_query/deparse/keywords.rb +0 -159
- data/lib/pg_query/deparse/rename.rb +0 -41
- data/lib/pg_query/legacy_parsetree.rb +0 -109
- data/lib/pg_query/node_types.rb +0 -296
@@ -0,0 +1,875 @@
|
|
1
|
+
case T_Alias:
|
2
|
+
// Intentionally ignoring for fingerprinting
|
3
|
+
break;
|
4
|
+
case T_RangeVar:
|
5
|
+
_fingerprintString(ctx, "RangeVar");
|
6
|
+
_fingerprintRangeVar(ctx, obj, parent, field_name, depth);
|
7
|
+
break;
|
8
|
+
case T_TableFunc:
|
9
|
+
_fingerprintString(ctx, "TableFunc");
|
10
|
+
_fingerprintTableFunc(ctx, obj, parent, field_name, depth);
|
11
|
+
break;
|
12
|
+
case T_Expr:
|
13
|
+
_fingerprintString(ctx, "Expr");
|
14
|
+
_fingerprintExpr(ctx, obj, parent, field_name, depth);
|
15
|
+
break;
|
16
|
+
case T_Var:
|
17
|
+
_fingerprintString(ctx, "Var");
|
18
|
+
_fingerprintVar(ctx, obj, parent, field_name, depth);
|
19
|
+
break;
|
20
|
+
case T_Const:
|
21
|
+
_fingerprintString(ctx, "Const");
|
22
|
+
_fingerprintConst(ctx, obj, parent, field_name, depth);
|
23
|
+
break;
|
24
|
+
case T_Param:
|
25
|
+
_fingerprintString(ctx, "Param");
|
26
|
+
_fingerprintParam(ctx, obj, parent, field_name, depth);
|
27
|
+
break;
|
28
|
+
case T_Aggref:
|
29
|
+
_fingerprintString(ctx, "Aggref");
|
30
|
+
_fingerprintAggref(ctx, obj, parent, field_name, depth);
|
31
|
+
break;
|
32
|
+
case T_GroupingFunc:
|
33
|
+
_fingerprintString(ctx, "GroupingFunc");
|
34
|
+
_fingerprintGroupingFunc(ctx, obj, parent, field_name, depth);
|
35
|
+
break;
|
36
|
+
case T_WindowFunc:
|
37
|
+
_fingerprintString(ctx, "WindowFunc");
|
38
|
+
_fingerprintWindowFunc(ctx, obj, parent, field_name, depth);
|
39
|
+
break;
|
40
|
+
case T_SubscriptingRef:
|
41
|
+
_fingerprintString(ctx, "SubscriptingRef");
|
42
|
+
_fingerprintSubscriptingRef(ctx, obj, parent, field_name, depth);
|
43
|
+
break;
|
44
|
+
case T_FuncExpr:
|
45
|
+
_fingerprintString(ctx, "FuncExpr");
|
46
|
+
_fingerprintFuncExpr(ctx, obj, parent, field_name, depth);
|
47
|
+
break;
|
48
|
+
case T_NamedArgExpr:
|
49
|
+
_fingerprintString(ctx, "NamedArgExpr");
|
50
|
+
_fingerprintNamedArgExpr(ctx, obj, parent, field_name, depth);
|
51
|
+
break;
|
52
|
+
case T_OpExpr:
|
53
|
+
_fingerprintString(ctx, "OpExpr");
|
54
|
+
_fingerprintOpExpr(ctx, obj, parent, field_name, depth);
|
55
|
+
break;
|
56
|
+
case T_ScalarArrayOpExpr:
|
57
|
+
_fingerprintString(ctx, "ScalarArrayOpExpr");
|
58
|
+
_fingerprintScalarArrayOpExpr(ctx, obj, parent, field_name, depth);
|
59
|
+
break;
|
60
|
+
case T_BoolExpr:
|
61
|
+
_fingerprintString(ctx, "BoolExpr");
|
62
|
+
_fingerprintBoolExpr(ctx, obj, parent, field_name, depth);
|
63
|
+
break;
|
64
|
+
case T_SubLink:
|
65
|
+
_fingerprintString(ctx, "SubLink");
|
66
|
+
_fingerprintSubLink(ctx, obj, parent, field_name, depth);
|
67
|
+
break;
|
68
|
+
case T_SubPlan:
|
69
|
+
_fingerprintString(ctx, "SubPlan");
|
70
|
+
_fingerprintSubPlan(ctx, obj, parent, field_name, depth);
|
71
|
+
break;
|
72
|
+
case T_AlternativeSubPlan:
|
73
|
+
_fingerprintString(ctx, "AlternativeSubPlan");
|
74
|
+
_fingerprintAlternativeSubPlan(ctx, obj, parent, field_name, depth);
|
75
|
+
break;
|
76
|
+
case T_FieldSelect:
|
77
|
+
_fingerprintString(ctx, "FieldSelect");
|
78
|
+
_fingerprintFieldSelect(ctx, obj, parent, field_name, depth);
|
79
|
+
break;
|
80
|
+
case T_FieldStore:
|
81
|
+
_fingerprintString(ctx, "FieldStore");
|
82
|
+
_fingerprintFieldStore(ctx, obj, parent, field_name, depth);
|
83
|
+
break;
|
84
|
+
case T_RelabelType:
|
85
|
+
_fingerprintString(ctx, "RelabelType");
|
86
|
+
_fingerprintRelabelType(ctx, obj, parent, field_name, depth);
|
87
|
+
break;
|
88
|
+
case T_CoerceViaIO:
|
89
|
+
_fingerprintString(ctx, "CoerceViaIO");
|
90
|
+
_fingerprintCoerceViaIO(ctx, obj, parent, field_name, depth);
|
91
|
+
break;
|
92
|
+
case T_ArrayCoerceExpr:
|
93
|
+
_fingerprintString(ctx, "ArrayCoerceExpr");
|
94
|
+
_fingerprintArrayCoerceExpr(ctx, obj, parent, field_name, depth);
|
95
|
+
break;
|
96
|
+
case T_ConvertRowtypeExpr:
|
97
|
+
_fingerprintString(ctx, "ConvertRowtypeExpr");
|
98
|
+
_fingerprintConvertRowtypeExpr(ctx, obj, parent, field_name, depth);
|
99
|
+
break;
|
100
|
+
case T_CollateExpr:
|
101
|
+
_fingerprintString(ctx, "CollateExpr");
|
102
|
+
_fingerprintCollateExpr(ctx, obj, parent, field_name, depth);
|
103
|
+
break;
|
104
|
+
case T_CaseExpr:
|
105
|
+
_fingerprintString(ctx, "CaseExpr");
|
106
|
+
_fingerprintCaseExpr(ctx, obj, parent, field_name, depth);
|
107
|
+
break;
|
108
|
+
case T_CaseWhen:
|
109
|
+
_fingerprintString(ctx, "CaseWhen");
|
110
|
+
_fingerprintCaseWhen(ctx, obj, parent, field_name, depth);
|
111
|
+
break;
|
112
|
+
case T_CaseTestExpr:
|
113
|
+
_fingerprintString(ctx, "CaseTestExpr");
|
114
|
+
_fingerprintCaseTestExpr(ctx, obj, parent, field_name, depth);
|
115
|
+
break;
|
116
|
+
case T_ArrayExpr:
|
117
|
+
_fingerprintString(ctx, "ArrayExpr");
|
118
|
+
_fingerprintArrayExpr(ctx, obj, parent, field_name, depth);
|
119
|
+
break;
|
120
|
+
case T_RowExpr:
|
121
|
+
_fingerprintString(ctx, "RowExpr");
|
122
|
+
_fingerprintRowExpr(ctx, obj, parent, field_name, depth);
|
123
|
+
break;
|
124
|
+
case T_RowCompareExpr:
|
125
|
+
_fingerprintString(ctx, "RowCompareExpr");
|
126
|
+
_fingerprintRowCompareExpr(ctx, obj, parent, field_name, depth);
|
127
|
+
break;
|
128
|
+
case T_CoalesceExpr:
|
129
|
+
_fingerprintString(ctx, "CoalesceExpr");
|
130
|
+
_fingerprintCoalesceExpr(ctx, obj, parent, field_name, depth);
|
131
|
+
break;
|
132
|
+
case T_MinMaxExpr:
|
133
|
+
_fingerprintString(ctx, "MinMaxExpr");
|
134
|
+
_fingerprintMinMaxExpr(ctx, obj, parent, field_name, depth);
|
135
|
+
break;
|
136
|
+
case T_SQLValueFunction:
|
137
|
+
_fingerprintString(ctx, "SQLValueFunction");
|
138
|
+
_fingerprintSQLValueFunction(ctx, obj, parent, field_name, depth);
|
139
|
+
break;
|
140
|
+
case T_XmlExpr:
|
141
|
+
_fingerprintString(ctx, "XmlExpr");
|
142
|
+
_fingerprintXmlExpr(ctx, obj, parent, field_name, depth);
|
143
|
+
break;
|
144
|
+
case T_NullTest:
|
145
|
+
_fingerprintString(ctx, "NullTest");
|
146
|
+
_fingerprintNullTest(ctx, obj, parent, field_name, depth);
|
147
|
+
break;
|
148
|
+
case T_BooleanTest:
|
149
|
+
_fingerprintString(ctx, "BooleanTest");
|
150
|
+
_fingerprintBooleanTest(ctx, obj, parent, field_name, depth);
|
151
|
+
break;
|
152
|
+
case T_CoerceToDomain:
|
153
|
+
_fingerprintString(ctx, "CoerceToDomain");
|
154
|
+
_fingerprintCoerceToDomain(ctx, obj, parent, field_name, depth);
|
155
|
+
break;
|
156
|
+
case T_CoerceToDomainValue:
|
157
|
+
_fingerprintString(ctx, "CoerceToDomainValue");
|
158
|
+
_fingerprintCoerceToDomainValue(ctx, obj, parent, field_name, depth);
|
159
|
+
break;
|
160
|
+
case T_SetToDefault:
|
161
|
+
// Intentionally ignoring for fingerprinting
|
162
|
+
break;
|
163
|
+
case T_CurrentOfExpr:
|
164
|
+
_fingerprintString(ctx, "CurrentOfExpr");
|
165
|
+
_fingerprintCurrentOfExpr(ctx, obj, parent, field_name, depth);
|
166
|
+
break;
|
167
|
+
case T_NextValueExpr:
|
168
|
+
_fingerprintString(ctx, "NextValueExpr");
|
169
|
+
_fingerprintNextValueExpr(ctx, obj, parent, field_name, depth);
|
170
|
+
break;
|
171
|
+
case T_InferenceElem:
|
172
|
+
_fingerprintString(ctx, "InferenceElem");
|
173
|
+
_fingerprintInferenceElem(ctx, obj, parent, field_name, depth);
|
174
|
+
break;
|
175
|
+
case T_TargetEntry:
|
176
|
+
_fingerprintString(ctx, "TargetEntry");
|
177
|
+
_fingerprintTargetEntry(ctx, obj, parent, field_name, depth);
|
178
|
+
break;
|
179
|
+
case T_RangeTblRef:
|
180
|
+
_fingerprintString(ctx, "RangeTblRef");
|
181
|
+
_fingerprintRangeTblRef(ctx, obj, parent, field_name, depth);
|
182
|
+
break;
|
183
|
+
case T_JoinExpr:
|
184
|
+
_fingerprintString(ctx, "JoinExpr");
|
185
|
+
_fingerprintJoinExpr(ctx, obj, parent, field_name, depth);
|
186
|
+
break;
|
187
|
+
case T_FromExpr:
|
188
|
+
_fingerprintString(ctx, "FromExpr");
|
189
|
+
_fingerprintFromExpr(ctx, obj, parent, field_name, depth);
|
190
|
+
break;
|
191
|
+
case T_OnConflictExpr:
|
192
|
+
_fingerprintString(ctx, "OnConflictExpr");
|
193
|
+
_fingerprintOnConflictExpr(ctx, obj, parent, field_name, depth);
|
194
|
+
break;
|
195
|
+
case T_IntoClause:
|
196
|
+
_fingerprintString(ctx, "IntoClause");
|
197
|
+
_fingerprintIntoClause(ctx, obj, parent, field_name, depth);
|
198
|
+
break;
|
199
|
+
case T_RawStmt:
|
200
|
+
_fingerprintString(ctx, "RawStmt");
|
201
|
+
_fingerprintRawStmt(ctx, obj, parent, field_name, depth);
|
202
|
+
break;
|
203
|
+
case T_Query:
|
204
|
+
_fingerprintString(ctx, "Query");
|
205
|
+
_fingerprintQuery(ctx, obj, parent, field_name, depth);
|
206
|
+
break;
|
207
|
+
case T_InsertStmt:
|
208
|
+
_fingerprintString(ctx, "InsertStmt");
|
209
|
+
_fingerprintInsertStmt(ctx, obj, parent, field_name, depth);
|
210
|
+
break;
|
211
|
+
case T_DeleteStmt:
|
212
|
+
_fingerprintString(ctx, "DeleteStmt");
|
213
|
+
_fingerprintDeleteStmt(ctx, obj, parent, field_name, depth);
|
214
|
+
break;
|
215
|
+
case T_UpdateStmt:
|
216
|
+
_fingerprintString(ctx, "UpdateStmt");
|
217
|
+
_fingerprintUpdateStmt(ctx, obj, parent, field_name, depth);
|
218
|
+
break;
|
219
|
+
case T_SelectStmt:
|
220
|
+
_fingerprintString(ctx, "SelectStmt");
|
221
|
+
_fingerprintSelectStmt(ctx, obj, parent, field_name, depth);
|
222
|
+
break;
|
223
|
+
case T_AlterTableStmt:
|
224
|
+
_fingerprintString(ctx, "AlterTableStmt");
|
225
|
+
_fingerprintAlterTableStmt(ctx, obj, parent, field_name, depth);
|
226
|
+
break;
|
227
|
+
case T_AlterTableCmd:
|
228
|
+
_fingerprintString(ctx, "AlterTableCmd");
|
229
|
+
_fingerprintAlterTableCmd(ctx, obj, parent, field_name, depth);
|
230
|
+
break;
|
231
|
+
case T_AlterDomainStmt:
|
232
|
+
_fingerprintString(ctx, "AlterDomainStmt");
|
233
|
+
_fingerprintAlterDomainStmt(ctx, obj, parent, field_name, depth);
|
234
|
+
break;
|
235
|
+
case T_SetOperationStmt:
|
236
|
+
_fingerprintString(ctx, "SetOperationStmt");
|
237
|
+
_fingerprintSetOperationStmt(ctx, obj, parent, field_name, depth);
|
238
|
+
break;
|
239
|
+
case T_GrantStmt:
|
240
|
+
_fingerprintString(ctx, "GrantStmt");
|
241
|
+
_fingerprintGrantStmt(ctx, obj, parent, field_name, depth);
|
242
|
+
break;
|
243
|
+
case T_GrantRoleStmt:
|
244
|
+
_fingerprintString(ctx, "GrantRoleStmt");
|
245
|
+
_fingerprintGrantRoleStmt(ctx, obj, parent, field_name, depth);
|
246
|
+
break;
|
247
|
+
case T_AlterDefaultPrivilegesStmt:
|
248
|
+
_fingerprintString(ctx, "AlterDefaultPrivilegesStmt");
|
249
|
+
_fingerprintAlterDefaultPrivilegesStmt(ctx, obj, parent, field_name, depth);
|
250
|
+
break;
|
251
|
+
case T_ClosePortalStmt:
|
252
|
+
_fingerprintString(ctx, "ClosePortalStmt");
|
253
|
+
_fingerprintClosePortalStmt(ctx, obj, parent, field_name, depth);
|
254
|
+
break;
|
255
|
+
case T_ClusterStmt:
|
256
|
+
_fingerprintString(ctx, "ClusterStmt");
|
257
|
+
_fingerprintClusterStmt(ctx, obj, parent, field_name, depth);
|
258
|
+
break;
|
259
|
+
case T_CopyStmt:
|
260
|
+
_fingerprintString(ctx, "CopyStmt");
|
261
|
+
_fingerprintCopyStmt(ctx, obj, parent, field_name, depth);
|
262
|
+
break;
|
263
|
+
case T_CreateStmt:
|
264
|
+
_fingerprintString(ctx, "CreateStmt");
|
265
|
+
_fingerprintCreateStmt(ctx, obj, parent, field_name, depth);
|
266
|
+
break;
|
267
|
+
case T_DefineStmt:
|
268
|
+
_fingerprintString(ctx, "DefineStmt");
|
269
|
+
_fingerprintDefineStmt(ctx, obj, parent, field_name, depth);
|
270
|
+
break;
|
271
|
+
case T_DropStmt:
|
272
|
+
_fingerprintString(ctx, "DropStmt");
|
273
|
+
_fingerprintDropStmt(ctx, obj, parent, field_name, depth);
|
274
|
+
break;
|
275
|
+
case T_TruncateStmt:
|
276
|
+
_fingerprintString(ctx, "TruncateStmt");
|
277
|
+
_fingerprintTruncateStmt(ctx, obj, parent, field_name, depth);
|
278
|
+
break;
|
279
|
+
case T_CommentStmt:
|
280
|
+
_fingerprintString(ctx, "CommentStmt");
|
281
|
+
_fingerprintCommentStmt(ctx, obj, parent, field_name, depth);
|
282
|
+
break;
|
283
|
+
case T_FetchStmt:
|
284
|
+
_fingerprintString(ctx, "FetchStmt");
|
285
|
+
_fingerprintFetchStmt(ctx, obj, parent, field_name, depth);
|
286
|
+
break;
|
287
|
+
case T_IndexStmt:
|
288
|
+
_fingerprintString(ctx, "IndexStmt");
|
289
|
+
_fingerprintIndexStmt(ctx, obj, parent, field_name, depth);
|
290
|
+
break;
|
291
|
+
case T_CreateFunctionStmt:
|
292
|
+
_fingerprintString(ctx, "CreateFunctionStmt");
|
293
|
+
_fingerprintCreateFunctionStmt(ctx, obj, parent, field_name, depth);
|
294
|
+
break;
|
295
|
+
case T_AlterFunctionStmt:
|
296
|
+
_fingerprintString(ctx, "AlterFunctionStmt");
|
297
|
+
_fingerprintAlterFunctionStmt(ctx, obj, parent, field_name, depth);
|
298
|
+
break;
|
299
|
+
case T_DoStmt:
|
300
|
+
_fingerprintString(ctx, "DoStmt");
|
301
|
+
_fingerprintDoStmt(ctx, obj, parent, field_name, depth);
|
302
|
+
break;
|
303
|
+
case T_RenameStmt:
|
304
|
+
_fingerprintString(ctx, "RenameStmt");
|
305
|
+
_fingerprintRenameStmt(ctx, obj, parent, field_name, depth);
|
306
|
+
break;
|
307
|
+
case T_RuleStmt:
|
308
|
+
_fingerprintString(ctx, "RuleStmt");
|
309
|
+
_fingerprintRuleStmt(ctx, obj, parent, field_name, depth);
|
310
|
+
break;
|
311
|
+
case T_NotifyStmt:
|
312
|
+
_fingerprintString(ctx, "NotifyStmt");
|
313
|
+
_fingerprintNotifyStmt(ctx, obj, parent, field_name, depth);
|
314
|
+
break;
|
315
|
+
case T_ListenStmt:
|
316
|
+
_fingerprintString(ctx, "ListenStmt");
|
317
|
+
_fingerprintListenStmt(ctx, obj, parent, field_name, depth);
|
318
|
+
break;
|
319
|
+
case T_UnlistenStmt:
|
320
|
+
_fingerprintString(ctx, "UnlistenStmt");
|
321
|
+
_fingerprintUnlistenStmt(ctx, obj, parent, field_name, depth);
|
322
|
+
break;
|
323
|
+
case T_TransactionStmt:
|
324
|
+
_fingerprintString(ctx, "TransactionStmt");
|
325
|
+
_fingerprintTransactionStmt(ctx, obj, parent, field_name, depth);
|
326
|
+
break;
|
327
|
+
case T_ViewStmt:
|
328
|
+
_fingerprintString(ctx, "ViewStmt");
|
329
|
+
_fingerprintViewStmt(ctx, obj, parent, field_name, depth);
|
330
|
+
break;
|
331
|
+
case T_LoadStmt:
|
332
|
+
_fingerprintString(ctx, "LoadStmt");
|
333
|
+
_fingerprintLoadStmt(ctx, obj, parent, field_name, depth);
|
334
|
+
break;
|
335
|
+
case T_CreateDomainStmt:
|
336
|
+
_fingerprintString(ctx, "CreateDomainStmt");
|
337
|
+
_fingerprintCreateDomainStmt(ctx, obj, parent, field_name, depth);
|
338
|
+
break;
|
339
|
+
case T_CreatedbStmt:
|
340
|
+
_fingerprintString(ctx, "CreatedbStmt");
|
341
|
+
_fingerprintCreatedbStmt(ctx, obj, parent, field_name, depth);
|
342
|
+
break;
|
343
|
+
case T_DropdbStmt:
|
344
|
+
_fingerprintString(ctx, "DropdbStmt");
|
345
|
+
_fingerprintDropdbStmt(ctx, obj, parent, field_name, depth);
|
346
|
+
break;
|
347
|
+
case T_VacuumStmt:
|
348
|
+
_fingerprintString(ctx, "VacuumStmt");
|
349
|
+
_fingerprintVacuumStmt(ctx, obj, parent, field_name, depth);
|
350
|
+
break;
|
351
|
+
case T_ExplainStmt:
|
352
|
+
_fingerprintString(ctx, "ExplainStmt");
|
353
|
+
_fingerprintExplainStmt(ctx, obj, parent, field_name, depth);
|
354
|
+
break;
|
355
|
+
case T_CreateTableAsStmt:
|
356
|
+
_fingerprintString(ctx, "CreateTableAsStmt");
|
357
|
+
_fingerprintCreateTableAsStmt(ctx, obj, parent, field_name, depth);
|
358
|
+
break;
|
359
|
+
case T_CreateSeqStmt:
|
360
|
+
_fingerprintString(ctx, "CreateSeqStmt");
|
361
|
+
_fingerprintCreateSeqStmt(ctx, obj, parent, field_name, depth);
|
362
|
+
break;
|
363
|
+
case T_AlterSeqStmt:
|
364
|
+
_fingerprintString(ctx, "AlterSeqStmt");
|
365
|
+
_fingerprintAlterSeqStmt(ctx, obj, parent, field_name, depth);
|
366
|
+
break;
|
367
|
+
case T_VariableSetStmt:
|
368
|
+
_fingerprintString(ctx, "VariableSetStmt");
|
369
|
+
_fingerprintVariableSetStmt(ctx, obj, parent, field_name, depth);
|
370
|
+
break;
|
371
|
+
case T_VariableShowStmt:
|
372
|
+
_fingerprintString(ctx, "VariableShowStmt");
|
373
|
+
_fingerprintVariableShowStmt(ctx, obj, parent, field_name, depth);
|
374
|
+
break;
|
375
|
+
case T_DiscardStmt:
|
376
|
+
_fingerprintString(ctx, "DiscardStmt");
|
377
|
+
_fingerprintDiscardStmt(ctx, obj, parent, field_name, depth);
|
378
|
+
break;
|
379
|
+
case T_CreateTrigStmt:
|
380
|
+
_fingerprintString(ctx, "CreateTrigStmt");
|
381
|
+
_fingerprintCreateTrigStmt(ctx, obj, parent, field_name, depth);
|
382
|
+
break;
|
383
|
+
case T_CreatePLangStmt:
|
384
|
+
_fingerprintString(ctx, "CreatePLangStmt");
|
385
|
+
_fingerprintCreatePLangStmt(ctx, obj, parent, field_name, depth);
|
386
|
+
break;
|
387
|
+
case T_CreateRoleStmt:
|
388
|
+
_fingerprintString(ctx, "CreateRoleStmt");
|
389
|
+
_fingerprintCreateRoleStmt(ctx, obj, parent, field_name, depth);
|
390
|
+
break;
|
391
|
+
case T_AlterRoleStmt:
|
392
|
+
_fingerprintString(ctx, "AlterRoleStmt");
|
393
|
+
_fingerprintAlterRoleStmt(ctx, obj, parent, field_name, depth);
|
394
|
+
break;
|
395
|
+
case T_DropRoleStmt:
|
396
|
+
_fingerprintString(ctx, "DropRoleStmt");
|
397
|
+
_fingerprintDropRoleStmt(ctx, obj, parent, field_name, depth);
|
398
|
+
break;
|
399
|
+
case T_LockStmt:
|
400
|
+
_fingerprintString(ctx, "LockStmt");
|
401
|
+
_fingerprintLockStmt(ctx, obj, parent, field_name, depth);
|
402
|
+
break;
|
403
|
+
case T_ConstraintsSetStmt:
|
404
|
+
_fingerprintString(ctx, "ConstraintsSetStmt");
|
405
|
+
_fingerprintConstraintsSetStmt(ctx, obj, parent, field_name, depth);
|
406
|
+
break;
|
407
|
+
case T_ReindexStmt:
|
408
|
+
_fingerprintString(ctx, "ReindexStmt");
|
409
|
+
_fingerprintReindexStmt(ctx, obj, parent, field_name, depth);
|
410
|
+
break;
|
411
|
+
case T_CheckPointStmt:
|
412
|
+
_fingerprintString(ctx, "CheckPointStmt");
|
413
|
+
_fingerprintCheckPointStmt(ctx, obj, parent, field_name, depth);
|
414
|
+
break;
|
415
|
+
case T_CreateSchemaStmt:
|
416
|
+
_fingerprintString(ctx, "CreateSchemaStmt");
|
417
|
+
_fingerprintCreateSchemaStmt(ctx, obj, parent, field_name, depth);
|
418
|
+
break;
|
419
|
+
case T_AlterDatabaseStmt:
|
420
|
+
_fingerprintString(ctx, "AlterDatabaseStmt");
|
421
|
+
_fingerprintAlterDatabaseStmt(ctx, obj, parent, field_name, depth);
|
422
|
+
break;
|
423
|
+
case T_AlterDatabaseSetStmt:
|
424
|
+
_fingerprintString(ctx, "AlterDatabaseSetStmt");
|
425
|
+
_fingerprintAlterDatabaseSetStmt(ctx, obj, parent, field_name, depth);
|
426
|
+
break;
|
427
|
+
case T_AlterRoleSetStmt:
|
428
|
+
_fingerprintString(ctx, "AlterRoleSetStmt");
|
429
|
+
_fingerprintAlterRoleSetStmt(ctx, obj, parent, field_name, depth);
|
430
|
+
break;
|
431
|
+
case T_CreateConversionStmt:
|
432
|
+
_fingerprintString(ctx, "CreateConversionStmt");
|
433
|
+
_fingerprintCreateConversionStmt(ctx, obj, parent, field_name, depth);
|
434
|
+
break;
|
435
|
+
case T_CreateCastStmt:
|
436
|
+
_fingerprintString(ctx, "CreateCastStmt");
|
437
|
+
_fingerprintCreateCastStmt(ctx, obj, parent, field_name, depth);
|
438
|
+
break;
|
439
|
+
case T_CreateOpClassStmt:
|
440
|
+
_fingerprintString(ctx, "CreateOpClassStmt");
|
441
|
+
_fingerprintCreateOpClassStmt(ctx, obj, parent, field_name, depth);
|
442
|
+
break;
|
443
|
+
case T_CreateOpFamilyStmt:
|
444
|
+
_fingerprintString(ctx, "CreateOpFamilyStmt");
|
445
|
+
_fingerprintCreateOpFamilyStmt(ctx, obj, parent, field_name, depth);
|
446
|
+
break;
|
447
|
+
case T_AlterOpFamilyStmt:
|
448
|
+
_fingerprintString(ctx, "AlterOpFamilyStmt");
|
449
|
+
_fingerprintAlterOpFamilyStmt(ctx, obj, parent, field_name, depth);
|
450
|
+
break;
|
451
|
+
case T_PrepareStmt:
|
452
|
+
_fingerprintString(ctx, "PrepareStmt");
|
453
|
+
_fingerprintPrepareStmt(ctx, obj, parent, field_name, depth);
|
454
|
+
break;
|
455
|
+
case T_ExecuteStmt:
|
456
|
+
_fingerprintString(ctx, "ExecuteStmt");
|
457
|
+
_fingerprintExecuteStmt(ctx, obj, parent, field_name, depth);
|
458
|
+
break;
|
459
|
+
case T_DeallocateStmt:
|
460
|
+
_fingerprintString(ctx, "DeallocateStmt");
|
461
|
+
_fingerprintDeallocateStmt(ctx, obj, parent, field_name, depth);
|
462
|
+
break;
|
463
|
+
case T_DeclareCursorStmt:
|
464
|
+
_fingerprintString(ctx, "DeclareCursorStmt");
|
465
|
+
_fingerprintDeclareCursorStmt(ctx, obj, parent, field_name, depth);
|
466
|
+
break;
|
467
|
+
case T_CreateTableSpaceStmt:
|
468
|
+
_fingerprintString(ctx, "CreateTableSpaceStmt");
|
469
|
+
_fingerprintCreateTableSpaceStmt(ctx, obj, parent, field_name, depth);
|
470
|
+
break;
|
471
|
+
case T_DropTableSpaceStmt:
|
472
|
+
_fingerprintString(ctx, "DropTableSpaceStmt");
|
473
|
+
_fingerprintDropTableSpaceStmt(ctx, obj, parent, field_name, depth);
|
474
|
+
break;
|
475
|
+
case T_AlterObjectDependsStmt:
|
476
|
+
_fingerprintString(ctx, "AlterObjectDependsStmt");
|
477
|
+
_fingerprintAlterObjectDependsStmt(ctx, obj, parent, field_name, depth);
|
478
|
+
break;
|
479
|
+
case T_AlterObjectSchemaStmt:
|
480
|
+
_fingerprintString(ctx, "AlterObjectSchemaStmt");
|
481
|
+
_fingerprintAlterObjectSchemaStmt(ctx, obj, parent, field_name, depth);
|
482
|
+
break;
|
483
|
+
case T_AlterOwnerStmt:
|
484
|
+
_fingerprintString(ctx, "AlterOwnerStmt");
|
485
|
+
_fingerprintAlterOwnerStmt(ctx, obj, parent, field_name, depth);
|
486
|
+
break;
|
487
|
+
case T_AlterOperatorStmt:
|
488
|
+
_fingerprintString(ctx, "AlterOperatorStmt");
|
489
|
+
_fingerprintAlterOperatorStmt(ctx, obj, parent, field_name, depth);
|
490
|
+
break;
|
491
|
+
case T_AlterTypeStmt:
|
492
|
+
_fingerprintString(ctx, "AlterTypeStmt");
|
493
|
+
_fingerprintAlterTypeStmt(ctx, obj, parent, field_name, depth);
|
494
|
+
break;
|
495
|
+
case T_DropOwnedStmt:
|
496
|
+
_fingerprintString(ctx, "DropOwnedStmt");
|
497
|
+
_fingerprintDropOwnedStmt(ctx, obj, parent, field_name, depth);
|
498
|
+
break;
|
499
|
+
case T_ReassignOwnedStmt:
|
500
|
+
_fingerprintString(ctx, "ReassignOwnedStmt");
|
501
|
+
_fingerprintReassignOwnedStmt(ctx, obj, parent, field_name, depth);
|
502
|
+
break;
|
503
|
+
case T_CompositeTypeStmt:
|
504
|
+
_fingerprintString(ctx, "CompositeTypeStmt");
|
505
|
+
_fingerprintCompositeTypeStmt(ctx, obj, parent, field_name, depth);
|
506
|
+
break;
|
507
|
+
case T_CreateEnumStmt:
|
508
|
+
_fingerprintString(ctx, "CreateEnumStmt");
|
509
|
+
_fingerprintCreateEnumStmt(ctx, obj, parent, field_name, depth);
|
510
|
+
break;
|
511
|
+
case T_CreateRangeStmt:
|
512
|
+
_fingerprintString(ctx, "CreateRangeStmt");
|
513
|
+
_fingerprintCreateRangeStmt(ctx, obj, parent, field_name, depth);
|
514
|
+
break;
|
515
|
+
case T_AlterEnumStmt:
|
516
|
+
_fingerprintString(ctx, "AlterEnumStmt");
|
517
|
+
_fingerprintAlterEnumStmt(ctx, obj, parent, field_name, depth);
|
518
|
+
break;
|
519
|
+
case T_AlterTSDictionaryStmt:
|
520
|
+
_fingerprintString(ctx, "AlterTSDictionaryStmt");
|
521
|
+
_fingerprintAlterTSDictionaryStmt(ctx, obj, parent, field_name, depth);
|
522
|
+
break;
|
523
|
+
case T_AlterTSConfigurationStmt:
|
524
|
+
_fingerprintString(ctx, "AlterTSConfigurationStmt");
|
525
|
+
_fingerprintAlterTSConfigurationStmt(ctx, obj, parent, field_name, depth);
|
526
|
+
break;
|
527
|
+
case T_CreateFdwStmt:
|
528
|
+
_fingerprintString(ctx, "CreateFdwStmt");
|
529
|
+
_fingerprintCreateFdwStmt(ctx, obj, parent, field_name, depth);
|
530
|
+
break;
|
531
|
+
case T_AlterFdwStmt:
|
532
|
+
_fingerprintString(ctx, "AlterFdwStmt");
|
533
|
+
_fingerprintAlterFdwStmt(ctx, obj, parent, field_name, depth);
|
534
|
+
break;
|
535
|
+
case T_CreateForeignServerStmt:
|
536
|
+
_fingerprintString(ctx, "CreateForeignServerStmt");
|
537
|
+
_fingerprintCreateForeignServerStmt(ctx, obj, parent, field_name, depth);
|
538
|
+
break;
|
539
|
+
case T_AlterForeignServerStmt:
|
540
|
+
_fingerprintString(ctx, "AlterForeignServerStmt");
|
541
|
+
_fingerprintAlterForeignServerStmt(ctx, obj, parent, field_name, depth);
|
542
|
+
break;
|
543
|
+
case T_CreateUserMappingStmt:
|
544
|
+
_fingerprintString(ctx, "CreateUserMappingStmt");
|
545
|
+
_fingerprintCreateUserMappingStmt(ctx, obj, parent, field_name, depth);
|
546
|
+
break;
|
547
|
+
case T_AlterUserMappingStmt:
|
548
|
+
_fingerprintString(ctx, "AlterUserMappingStmt");
|
549
|
+
_fingerprintAlterUserMappingStmt(ctx, obj, parent, field_name, depth);
|
550
|
+
break;
|
551
|
+
case T_DropUserMappingStmt:
|
552
|
+
_fingerprintString(ctx, "DropUserMappingStmt");
|
553
|
+
_fingerprintDropUserMappingStmt(ctx, obj, parent, field_name, depth);
|
554
|
+
break;
|
555
|
+
case T_AlterTableSpaceOptionsStmt:
|
556
|
+
_fingerprintString(ctx, "AlterTableSpaceOptionsStmt");
|
557
|
+
_fingerprintAlterTableSpaceOptionsStmt(ctx, obj, parent, field_name, depth);
|
558
|
+
break;
|
559
|
+
case T_AlterTableMoveAllStmt:
|
560
|
+
_fingerprintString(ctx, "AlterTableMoveAllStmt");
|
561
|
+
_fingerprintAlterTableMoveAllStmt(ctx, obj, parent, field_name, depth);
|
562
|
+
break;
|
563
|
+
case T_SecLabelStmt:
|
564
|
+
_fingerprintString(ctx, "SecLabelStmt");
|
565
|
+
_fingerprintSecLabelStmt(ctx, obj, parent, field_name, depth);
|
566
|
+
break;
|
567
|
+
case T_CreateForeignTableStmt:
|
568
|
+
_fingerprintString(ctx, "CreateForeignTableStmt");
|
569
|
+
_fingerprintCreateForeignTableStmt(ctx, obj, parent, field_name, depth);
|
570
|
+
break;
|
571
|
+
case T_ImportForeignSchemaStmt:
|
572
|
+
_fingerprintString(ctx, "ImportForeignSchemaStmt");
|
573
|
+
_fingerprintImportForeignSchemaStmt(ctx, obj, parent, field_name, depth);
|
574
|
+
break;
|
575
|
+
case T_CreateExtensionStmt:
|
576
|
+
_fingerprintString(ctx, "CreateExtensionStmt");
|
577
|
+
_fingerprintCreateExtensionStmt(ctx, obj, parent, field_name, depth);
|
578
|
+
break;
|
579
|
+
case T_AlterExtensionStmt:
|
580
|
+
_fingerprintString(ctx, "AlterExtensionStmt");
|
581
|
+
_fingerprintAlterExtensionStmt(ctx, obj, parent, field_name, depth);
|
582
|
+
break;
|
583
|
+
case T_AlterExtensionContentsStmt:
|
584
|
+
_fingerprintString(ctx, "AlterExtensionContentsStmt");
|
585
|
+
_fingerprintAlterExtensionContentsStmt(ctx, obj, parent, field_name, depth);
|
586
|
+
break;
|
587
|
+
case T_CreateEventTrigStmt:
|
588
|
+
_fingerprintString(ctx, "CreateEventTrigStmt");
|
589
|
+
_fingerprintCreateEventTrigStmt(ctx, obj, parent, field_name, depth);
|
590
|
+
break;
|
591
|
+
case T_AlterEventTrigStmt:
|
592
|
+
_fingerprintString(ctx, "AlterEventTrigStmt");
|
593
|
+
_fingerprintAlterEventTrigStmt(ctx, obj, parent, field_name, depth);
|
594
|
+
break;
|
595
|
+
case T_RefreshMatViewStmt:
|
596
|
+
_fingerprintString(ctx, "RefreshMatViewStmt");
|
597
|
+
_fingerprintRefreshMatViewStmt(ctx, obj, parent, field_name, depth);
|
598
|
+
break;
|
599
|
+
case T_ReplicaIdentityStmt:
|
600
|
+
_fingerprintString(ctx, "ReplicaIdentityStmt");
|
601
|
+
_fingerprintReplicaIdentityStmt(ctx, obj, parent, field_name, depth);
|
602
|
+
break;
|
603
|
+
case T_AlterSystemStmt:
|
604
|
+
_fingerprintString(ctx, "AlterSystemStmt");
|
605
|
+
_fingerprintAlterSystemStmt(ctx, obj, parent, field_name, depth);
|
606
|
+
break;
|
607
|
+
case T_CreatePolicyStmt:
|
608
|
+
_fingerprintString(ctx, "CreatePolicyStmt");
|
609
|
+
_fingerprintCreatePolicyStmt(ctx, obj, parent, field_name, depth);
|
610
|
+
break;
|
611
|
+
case T_AlterPolicyStmt:
|
612
|
+
_fingerprintString(ctx, "AlterPolicyStmt");
|
613
|
+
_fingerprintAlterPolicyStmt(ctx, obj, parent, field_name, depth);
|
614
|
+
break;
|
615
|
+
case T_CreateTransformStmt:
|
616
|
+
_fingerprintString(ctx, "CreateTransformStmt");
|
617
|
+
_fingerprintCreateTransformStmt(ctx, obj, parent, field_name, depth);
|
618
|
+
break;
|
619
|
+
case T_CreateAmStmt:
|
620
|
+
_fingerprintString(ctx, "CreateAmStmt");
|
621
|
+
_fingerprintCreateAmStmt(ctx, obj, parent, field_name, depth);
|
622
|
+
break;
|
623
|
+
case T_CreatePublicationStmt:
|
624
|
+
_fingerprintString(ctx, "CreatePublicationStmt");
|
625
|
+
_fingerprintCreatePublicationStmt(ctx, obj, parent, field_name, depth);
|
626
|
+
break;
|
627
|
+
case T_AlterPublicationStmt:
|
628
|
+
_fingerprintString(ctx, "AlterPublicationStmt");
|
629
|
+
_fingerprintAlterPublicationStmt(ctx, obj, parent, field_name, depth);
|
630
|
+
break;
|
631
|
+
case T_CreateSubscriptionStmt:
|
632
|
+
_fingerprintString(ctx, "CreateSubscriptionStmt");
|
633
|
+
_fingerprintCreateSubscriptionStmt(ctx, obj, parent, field_name, depth);
|
634
|
+
break;
|
635
|
+
case T_AlterSubscriptionStmt:
|
636
|
+
_fingerprintString(ctx, "AlterSubscriptionStmt");
|
637
|
+
_fingerprintAlterSubscriptionStmt(ctx, obj, parent, field_name, depth);
|
638
|
+
break;
|
639
|
+
case T_DropSubscriptionStmt:
|
640
|
+
_fingerprintString(ctx, "DropSubscriptionStmt");
|
641
|
+
_fingerprintDropSubscriptionStmt(ctx, obj, parent, field_name, depth);
|
642
|
+
break;
|
643
|
+
case T_CreateStatsStmt:
|
644
|
+
_fingerprintString(ctx, "CreateStatsStmt");
|
645
|
+
_fingerprintCreateStatsStmt(ctx, obj, parent, field_name, depth);
|
646
|
+
break;
|
647
|
+
case T_AlterCollationStmt:
|
648
|
+
_fingerprintString(ctx, "AlterCollationStmt");
|
649
|
+
_fingerprintAlterCollationStmt(ctx, obj, parent, field_name, depth);
|
650
|
+
break;
|
651
|
+
case T_CallStmt:
|
652
|
+
_fingerprintString(ctx, "CallStmt");
|
653
|
+
_fingerprintCallStmt(ctx, obj, parent, field_name, depth);
|
654
|
+
break;
|
655
|
+
case T_AlterStatsStmt:
|
656
|
+
_fingerprintString(ctx, "AlterStatsStmt");
|
657
|
+
_fingerprintAlterStatsStmt(ctx, obj, parent, field_name, depth);
|
658
|
+
break;
|
659
|
+
case T_A_Expr:
|
660
|
+
_fingerprintString(ctx, "A_Expr");
|
661
|
+
_fingerprintA_Expr(ctx, obj, parent, field_name, depth);
|
662
|
+
break;
|
663
|
+
case T_ColumnRef:
|
664
|
+
_fingerprintString(ctx, "ColumnRef");
|
665
|
+
_fingerprintColumnRef(ctx, obj, parent, field_name, depth);
|
666
|
+
break;
|
667
|
+
case T_ParamRef:
|
668
|
+
// Intentionally ignoring for fingerprinting
|
669
|
+
break;
|
670
|
+
case T_A_Const:
|
671
|
+
// Intentionally ignoring for fingerprinting
|
672
|
+
break;
|
673
|
+
case T_FuncCall:
|
674
|
+
_fingerprintString(ctx, "FuncCall");
|
675
|
+
_fingerprintFuncCall(ctx, obj, parent, field_name, depth);
|
676
|
+
break;
|
677
|
+
case T_A_Star:
|
678
|
+
_fingerprintString(ctx, "A_Star");
|
679
|
+
_fingerprintA_Star(ctx, obj, parent, field_name, depth);
|
680
|
+
break;
|
681
|
+
case T_A_Indices:
|
682
|
+
_fingerprintString(ctx, "A_Indices");
|
683
|
+
_fingerprintA_Indices(ctx, obj, parent, field_name, depth);
|
684
|
+
break;
|
685
|
+
case T_A_Indirection:
|
686
|
+
_fingerprintString(ctx, "A_Indirection");
|
687
|
+
_fingerprintA_Indirection(ctx, obj, parent, field_name, depth);
|
688
|
+
break;
|
689
|
+
case T_A_ArrayExpr:
|
690
|
+
_fingerprintString(ctx, "A_ArrayExpr");
|
691
|
+
_fingerprintA_ArrayExpr(ctx, obj, parent, field_name, depth);
|
692
|
+
break;
|
693
|
+
case T_ResTarget:
|
694
|
+
_fingerprintString(ctx, "ResTarget");
|
695
|
+
_fingerprintResTarget(ctx, obj, parent, field_name, depth);
|
696
|
+
break;
|
697
|
+
case T_MultiAssignRef:
|
698
|
+
_fingerprintString(ctx, "MultiAssignRef");
|
699
|
+
_fingerprintMultiAssignRef(ctx, obj, parent, field_name, depth);
|
700
|
+
break;
|
701
|
+
case T_TypeCast:
|
702
|
+
if (!IsA(castNode(TypeCast, (void*) obj)->arg, A_Const) && !IsA(castNode(TypeCast, (void*) obj)->arg, ParamRef))
|
703
|
+
{
|
704
|
+
_fingerprintString(ctx, "TypeCast");
|
705
|
+
_fingerprintTypeCast(ctx, obj, parent, field_name, depth);
|
706
|
+
}
|
707
|
+
break;
|
708
|
+
case T_CollateClause:
|
709
|
+
_fingerprintString(ctx, "CollateClause");
|
710
|
+
_fingerprintCollateClause(ctx, obj, parent, field_name, depth);
|
711
|
+
break;
|
712
|
+
case T_SortBy:
|
713
|
+
_fingerprintString(ctx, "SortBy");
|
714
|
+
_fingerprintSortBy(ctx, obj, parent, field_name, depth);
|
715
|
+
break;
|
716
|
+
case T_WindowDef:
|
717
|
+
_fingerprintString(ctx, "WindowDef");
|
718
|
+
_fingerprintWindowDef(ctx, obj, parent, field_name, depth);
|
719
|
+
break;
|
720
|
+
case T_RangeSubselect:
|
721
|
+
_fingerprintString(ctx, "RangeSubselect");
|
722
|
+
_fingerprintRangeSubselect(ctx, obj, parent, field_name, depth);
|
723
|
+
break;
|
724
|
+
case T_RangeFunction:
|
725
|
+
_fingerprintString(ctx, "RangeFunction");
|
726
|
+
_fingerprintRangeFunction(ctx, obj, parent, field_name, depth);
|
727
|
+
break;
|
728
|
+
case T_RangeTableSample:
|
729
|
+
_fingerprintString(ctx, "RangeTableSample");
|
730
|
+
_fingerprintRangeTableSample(ctx, obj, parent, field_name, depth);
|
731
|
+
break;
|
732
|
+
case T_RangeTableFunc:
|
733
|
+
_fingerprintString(ctx, "RangeTableFunc");
|
734
|
+
_fingerprintRangeTableFunc(ctx, obj, parent, field_name, depth);
|
735
|
+
break;
|
736
|
+
case T_RangeTableFuncCol:
|
737
|
+
_fingerprintString(ctx, "RangeTableFuncCol");
|
738
|
+
_fingerprintRangeTableFuncCol(ctx, obj, parent, field_name, depth);
|
739
|
+
break;
|
740
|
+
case T_TypeName:
|
741
|
+
_fingerprintString(ctx, "TypeName");
|
742
|
+
_fingerprintTypeName(ctx, obj, parent, field_name, depth);
|
743
|
+
break;
|
744
|
+
case T_ColumnDef:
|
745
|
+
_fingerprintString(ctx, "ColumnDef");
|
746
|
+
_fingerprintColumnDef(ctx, obj, parent, field_name, depth);
|
747
|
+
break;
|
748
|
+
case T_IndexElem:
|
749
|
+
_fingerprintString(ctx, "IndexElem");
|
750
|
+
_fingerprintIndexElem(ctx, obj, parent, field_name, depth);
|
751
|
+
break;
|
752
|
+
case T_Constraint:
|
753
|
+
_fingerprintString(ctx, "Constraint");
|
754
|
+
_fingerprintConstraint(ctx, obj, parent, field_name, depth);
|
755
|
+
break;
|
756
|
+
case T_DefElem:
|
757
|
+
_fingerprintString(ctx, "DefElem");
|
758
|
+
_fingerprintDefElem(ctx, obj, parent, field_name, depth);
|
759
|
+
break;
|
760
|
+
case T_RangeTblEntry:
|
761
|
+
_fingerprintString(ctx, "RangeTblEntry");
|
762
|
+
_fingerprintRangeTblEntry(ctx, obj, parent, field_name, depth);
|
763
|
+
break;
|
764
|
+
case T_RangeTblFunction:
|
765
|
+
_fingerprintString(ctx, "RangeTblFunction");
|
766
|
+
_fingerprintRangeTblFunction(ctx, obj, parent, field_name, depth);
|
767
|
+
break;
|
768
|
+
case T_TableSampleClause:
|
769
|
+
_fingerprintString(ctx, "TableSampleClause");
|
770
|
+
_fingerprintTableSampleClause(ctx, obj, parent, field_name, depth);
|
771
|
+
break;
|
772
|
+
case T_WithCheckOption:
|
773
|
+
_fingerprintString(ctx, "WithCheckOption");
|
774
|
+
_fingerprintWithCheckOption(ctx, obj, parent, field_name, depth);
|
775
|
+
break;
|
776
|
+
case T_SortGroupClause:
|
777
|
+
_fingerprintString(ctx, "SortGroupClause");
|
778
|
+
_fingerprintSortGroupClause(ctx, obj, parent, field_name, depth);
|
779
|
+
break;
|
780
|
+
case T_GroupingSet:
|
781
|
+
_fingerprintString(ctx, "GroupingSet");
|
782
|
+
_fingerprintGroupingSet(ctx, obj, parent, field_name, depth);
|
783
|
+
break;
|
784
|
+
case T_WindowClause:
|
785
|
+
_fingerprintString(ctx, "WindowClause");
|
786
|
+
_fingerprintWindowClause(ctx, obj, parent, field_name, depth);
|
787
|
+
break;
|
788
|
+
case T_ObjectWithArgs:
|
789
|
+
_fingerprintString(ctx, "ObjectWithArgs");
|
790
|
+
_fingerprintObjectWithArgs(ctx, obj, parent, field_name, depth);
|
791
|
+
break;
|
792
|
+
case T_AccessPriv:
|
793
|
+
_fingerprintString(ctx, "AccessPriv");
|
794
|
+
_fingerprintAccessPriv(ctx, obj, parent, field_name, depth);
|
795
|
+
break;
|
796
|
+
case T_CreateOpClassItem:
|
797
|
+
_fingerprintString(ctx, "CreateOpClassItem");
|
798
|
+
_fingerprintCreateOpClassItem(ctx, obj, parent, field_name, depth);
|
799
|
+
break;
|
800
|
+
case T_TableLikeClause:
|
801
|
+
_fingerprintString(ctx, "TableLikeClause");
|
802
|
+
_fingerprintTableLikeClause(ctx, obj, parent, field_name, depth);
|
803
|
+
break;
|
804
|
+
case T_FunctionParameter:
|
805
|
+
_fingerprintString(ctx, "FunctionParameter");
|
806
|
+
_fingerprintFunctionParameter(ctx, obj, parent, field_name, depth);
|
807
|
+
break;
|
808
|
+
case T_LockingClause:
|
809
|
+
_fingerprintString(ctx, "LockingClause");
|
810
|
+
_fingerprintLockingClause(ctx, obj, parent, field_name, depth);
|
811
|
+
break;
|
812
|
+
case T_RowMarkClause:
|
813
|
+
_fingerprintString(ctx, "RowMarkClause");
|
814
|
+
_fingerprintRowMarkClause(ctx, obj, parent, field_name, depth);
|
815
|
+
break;
|
816
|
+
case T_XmlSerialize:
|
817
|
+
_fingerprintString(ctx, "XmlSerialize");
|
818
|
+
_fingerprintXmlSerialize(ctx, obj, parent, field_name, depth);
|
819
|
+
break;
|
820
|
+
case T_WithClause:
|
821
|
+
_fingerprintString(ctx, "WithClause");
|
822
|
+
_fingerprintWithClause(ctx, obj, parent, field_name, depth);
|
823
|
+
break;
|
824
|
+
case T_InferClause:
|
825
|
+
_fingerprintString(ctx, "InferClause");
|
826
|
+
_fingerprintInferClause(ctx, obj, parent, field_name, depth);
|
827
|
+
break;
|
828
|
+
case T_OnConflictClause:
|
829
|
+
_fingerprintString(ctx, "OnConflictClause");
|
830
|
+
_fingerprintOnConflictClause(ctx, obj, parent, field_name, depth);
|
831
|
+
break;
|
832
|
+
case T_CommonTableExpr:
|
833
|
+
_fingerprintString(ctx, "CommonTableExpr");
|
834
|
+
_fingerprintCommonTableExpr(ctx, obj, parent, field_name, depth);
|
835
|
+
break;
|
836
|
+
case T_RoleSpec:
|
837
|
+
_fingerprintString(ctx, "RoleSpec");
|
838
|
+
_fingerprintRoleSpec(ctx, obj, parent, field_name, depth);
|
839
|
+
break;
|
840
|
+
case T_TriggerTransition:
|
841
|
+
_fingerprintString(ctx, "TriggerTransition");
|
842
|
+
_fingerprintTriggerTransition(ctx, obj, parent, field_name, depth);
|
843
|
+
break;
|
844
|
+
case T_PartitionElem:
|
845
|
+
_fingerprintString(ctx, "PartitionElem");
|
846
|
+
_fingerprintPartitionElem(ctx, obj, parent, field_name, depth);
|
847
|
+
break;
|
848
|
+
case T_PartitionSpec:
|
849
|
+
_fingerprintString(ctx, "PartitionSpec");
|
850
|
+
_fingerprintPartitionSpec(ctx, obj, parent, field_name, depth);
|
851
|
+
break;
|
852
|
+
case T_PartitionBoundSpec:
|
853
|
+
_fingerprintString(ctx, "PartitionBoundSpec");
|
854
|
+
_fingerprintPartitionBoundSpec(ctx, obj, parent, field_name, depth);
|
855
|
+
break;
|
856
|
+
case T_PartitionRangeDatum:
|
857
|
+
_fingerprintString(ctx, "PartitionRangeDatum");
|
858
|
+
_fingerprintPartitionRangeDatum(ctx, obj, parent, field_name, depth);
|
859
|
+
break;
|
860
|
+
case T_PartitionCmd:
|
861
|
+
_fingerprintString(ctx, "PartitionCmd");
|
862
|
+
_fingerprintPartitionCmd(ctx, obj, parent, field_name, depth);
|
863
|
+
break;
|
864
|
+
case T_VacuumRelation:
|
865
|
+
_fingerprintString(ctx, "VacuumRelation");
|
866
|
+
_fingerprintVacuumRelation(ctx, obj, parent, field_name, depth);
|
867
|
+
break;
|
868
|
+
case T_InlineCodeBlock:
|
869
|
+
_fingerprintString(ctx, "InlineCodeBlock");
|
870
|
+
_fingerprintInlineCodeBlock(ctx, obj, parent, field_name, depth);
|
871
|
+
break;
|
872
|
+
case T_CallContext:
|
873
|
+
_fingerprintString(ctx, "CallContext");
|
874
|
+
_fingerprintCallContext(ctx, obj, parent, field_name, depth);
|
875
|
+
break;
|